OxL Reference

fn selfInfo

This node as the registry sees it (roles, zone, labels, address, version, schema hash, load).

Example:

oxl✓ checked in CI
use std.cluster

fn main() io {
  let me = cluster.selfInfo()
  print("{me.isSelf} {me.state}")
}
Output
true alive
pub(api) fn selfInfo() -> ClusterMember

Thread safety. safe to call from any task; the value is a snapshot.

Since. 1.0.0-beta

Returns

ClusterMember

Effects

none declared (pure unless the body says otherwise)

Defined in: std/cluster/cluster.oxl:51

See also