Skip to main content

Crate moq_ext_access

Crate moq_ext_access 

Source
Expand description

Access control for moq nodes, independent of the transport.

  • Grant: what a session may subscribe to and publish.
  • SessionRequest: what a peer asked for when it opened a session.
  • Direction: which side opened a session.
  • Audience: who may see a publication, generic over the peer id.
  • AudienceKind: an Audience as a registry keeps it, the current set.
  • visible_paths: the paths a link may see, given its Viewer.
  • policy: who may hold a session, and with which Grant.
  • Layout: a path convention, which says where each peer publishes and who owns a path.

The default build carries no JWT or crypto stack. The jwt feature adds policy::JwtVerifier on moq-auth, and the rcan feature adds policy::RcanVerifier on ed25519 capability chains. A conversion between Grant and moq_auth::Grant is left out on purpose: expiry lives on policy::Authorization, not on the grant.

Modules§

policy
Admission and authorization of sessions, decided by a Policy.
token
The wire convention for the token a dialing peer presents.

Structs§

Grant
What a session may subscribe to from a node, and publish into it.
InvalidPath
An error returned when a path is not a valid grant prefix.
SessionRequest
What a peer asked for when it opened a session.

Enums§

Audience
Who may see a publication.
AudienceKind
An Audience as a registry keeps it: the current set, not its watcher.
Direction
Which side opened a session.
LinkKind
What kind of link a session or a media relay attachment is.
Viewer
The link that visible_paths works out the visible publications for.

Traits§

Layout
A path convention: where each peer publishes, and which peer owns a path.
PeerId
A peer’s identity: any small, comparable, printable id.

Functions§

visible_paths
Returns the paths of publications that viewer may see, as prefixes.