Module hayata_agent_sup

Supervises the infrastructure belonging to one Hayata agent.

Behaviours: supervisor.

Description

Supervises the infrastructure belonging to one Hayata agent.

Data Types

config()

config() = #{id := term(), nodes := #{term() => function()}}

Function Index

agent/1
init/1
node_supervisor/1
start_link/1

Function Details

agent/1

agent(SupPid::pid()) -> {ok, pid()} | {error, term()}

init/1

init(Config::config()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}

node_supervisor/1

node_supervisor(SupPid::pid()) -> {ok, pid()} | {error, term()}

start_link/1

start_link(Config::config()) -> supervisor:startchild_ret()


Generated by EDoc