fn node
The id of the node called name. On a single node every other id is unreachable: Service.at(cluster.node(x)) is
Unavailable.
Example:
use std.cluster
fn main() io {
let id = cluster.node("store-2")
print(id.name)
}Output
store-2
pub(api) fn node(name: str) -> NodeIdSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
name | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/cluster/cluster.oxl:104