Hyper.Node.Layer (Hyper v0.1.0)

Copy Markdown View Source

Supervisor for this node's mounted layers. Owns a unique Registry (layer_id -> Layer.Server) and a DynamicSupervisor that holds those servers, so a layer can be mounted on demand and looked up by its id.

Summary

Functions

Every layer id currently mounted on this node.

Returns a specification to start this module under a supervisor.

Mount layer_id on this node (or reuse the server already mounting it).

Functions

active()

@spec active() :: [Hyper.Layer.id()]

Every layer id currently mounted on this node.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

start_server(layer_id)

@spec start_server(Hyper.Layer.id()) :: {:ok, pid()} | {:error, term()}

Mount layer_id on this node (or reuse the server already mounting it).