Extends
- events.EventEmitter
Methods
clear()
forEach(callback)
Executes a provided function once per map element.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
get(key) → {Host}
Gets a host by key or undefined if not found.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
String |
Returns:
- Type
- Host
keys() → {Array.<String>}
Returns an array of host addresses.
Returns:
- Type
- Array.<String>
remove()
removeMultiple()
set()
values() → {Array.<Host>}
Returns a shallow copy of the values of the map.
Returns:
- Type
- Array.<Host>
(package, static) fromRust(hostsList)
Converts a list of HostWrapper from Rust to a HostMap
Parameters:
| Name | Type | Description |
|---|---|---|
hostsList |
Array.<_rust.HostWrapper> |