Module hayata_node_sup

Behaviours: supervisor.

Data Types

agent_id()

agent_id() = term()

node_id()

node_id() = atom() | string()

node_state()

node_state() = map()

Function Index

init/1
start_link/1
start_node/5
stop_node/2

Function Details

init/1

init(AgentId::agent_id()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}

start_link/1

start_link(AgentId::agent_id()) -> supervisor:start_ret()

start_node/5

start_node(SupPid::pid(), NodeId::node_id(), InitialState::node_state(), Edges::[term()], AgentId::term()) -> {ok, pid()} | {error, term()}

stop_node/2

stop_node(SupPid::pid(), NodeId::node_id()) -> ok | {error, term()}


Generated by EDoc