OxL Reference

kw auth

Contextual keyword — cluster declaration (§12.1)

The list of words: §1.4

Syntax

ebnf
ClusterClause = "seeds" Expr | "port" IntLit | "trace_sample" FloatLit | "auth" Block | "defaults" "{" { Ident Expr } "}"
            | "role" Ident "{" RoleClause { ( ";" | NL ) RoleClause } "}"
            | "assign" "by" Expr { "else" Expr } ;

Grammar: App. A

Defined in

Examples

oxl
use std.time { Duration, now }
use std.http.{Client as Http}
use self.billing { charge }      // a module of one's own package
use super.common { Money }       // the parent module
use auth.tokens { verify }       // a dependency from oxl.toml
use parsers { <|> }              // importing an operator
use std.coll.*                   // all pub names (a warning in libraries)

— 2.2 Import

Related diagnostics

actor-not-hosted, cluster-auth, cluster-decl, cluster-needs, cluster-seeds, placement-conflict, saga-without-role, service-not-served, topic-without-journal, unknown-role, bad-import-root, glob-import, import-conflict, unresolved-import

See also