OxL Reference

method ClusterApi.find

The live nodes that serve the service name (fully qualified pkg.Service or the type name), §12.3.

Example:

oxl✓ checked in CI
fn main() io {
  print("{cluster.find("Bank").len()}")
}
Output
0
pub(api) fn find(name: str) -> List<ClusterMember>

Complexity. O(n) in the number of nodes.

Since. 1.0.0-beta

Parameters

NameType
namestr

Returns

List<ClusterMember>

Effects

none declared (pure unless the body says otherwise)

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

See also