Skip to main content

Module layout

Module layout 

Source
Expand description

The <root>/<peer>/<name> path layout.

The node takes any path. LiveLayout publishes a peer’s broadcasts under <root>/<peer>/, and lets a peer publish only there, so no peer can publish at a path that names another.

Rooms paths (rooms/...) belong to iroh-live-rooms.

Structs§

LiveLayout
The <root>/<peer>/<name> layout, with the root live by default.

Traits§

Layout
A path convention: where each peer publishes, and which peer owns a path.

Functions§

config
Returns the NodeConfig of a node on layout, with its policy().
grant
Returns the grant a node gives peer under layout.
policy
Returns a policy that admits every peer with its grant under layout.