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: anAudienceas a registry keeps it, the current set.visible_paths: the paths a link may see, given itsViewer.policy: who may hold a session, and with whichGrant.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.
- Invalid
Path - An error returned when a path is not a valid grant prefix.
- Session
Request - What a peer asked for when it opened a session.
Enums§
- Audience
- Who may see a publication.
- Audience
Kind - An
Audienceas a registry keeps it: the current set, not its watcher. - Direction
- Which side opened a session.
- Link
Kind - What kind of link a session or a media relay attachment is.
- Viewer
- The link that
visible_pathsworks 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
publicationsthatviewermay see, as prefixes.