PlanB.EventBus (planb v0.1.0)
Module EventBus
This module is created as a GenServer. To use it just call start_link/1, then create a channel and register subscribers to it.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
health_check()
Specs
health_check() :: :fail | :ok
Link to this function
init(state)
Specs
Callback implementation for GenServer.init/1
.
Link to this function
lookup(name)
Specs
Link to this function
publish(name, payload)
Specs
Link to this function
register(name, module)
Specs
Link to this function
start_link(args)
Specs
Link to this function
stop_server()
Specs
stop_server() :: :ok