OxL Reference

method ClusterApi.selfInfo

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

Example:

oxl✓ checked in CI
fn main() io {
  let me = cluster.selfInfo()
  print("{me.id.name == cluster.self().name}")
}
Output
true
pub(api) fn selfInfo() -> ClusterMember

Since. 1.0.0-beta

Returns

ClusterMember

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/node.oxl:278

See also