OxL Reference

method Principal.service

The caller is the service of cluster role name (caller.service("billing"), §13.2).

Example:

oxl✓ checked in CI
fn main() io {
  let billing = Principal.Service("billing-1", "billing")
  print("{billing.service("billing")} {billing.service("web")}")
}
Output
true false
pub(api) fn service(name: str) -> bool

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
namestr

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/rpc.oxl:119

See also