View Source TreeMap.RootServer (tree_map v0.1.2)

A server to maintain a list of root nodes as a DynamicSupervisor.

Don't call this module directly. Use the TreeMap module instead.

Examples

iex> TreeMap.list_roots()
[%Node{}, ...]

iex> TreeMap.find("key")
%Node{}

iex> TreeMap.drop_all()
[:ok, ...]

Summary

Functions

Returns a specification to start this module under a supervisor.

Stop all children.

Return the root node of each child.

Start a new root node as supervised child.

Start the DynamicSupervisor as a singleton.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Stop all children.

Return the root node of each child.

Start a new root node as supervised child.

Start the DynamicSupervisor as a singleton.