PlanB.EventBus (planb v0.1.2)

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.

health_check/0

Callback implementation for GenServer.init/1.

lookup/1

start_link/1

stop_server/0

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.

Specs

health_check() :: :fail | :ok

health_check/0

Specs

init(any()) :: {:ok, any()}

Callback implementation for GenServer.init/1.

Specs

lookup(binary()) :: any()

lookup/1

Link to this function

publish(name, payload)

Specs

publish(binary(), any()) :: any()

publish/2

Link to this function

register(name, module)

Specs

register(binary(), Module) :: any()

register/2

Link to this function

start_link(args)

Specs

start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}

Specs

stop_server() :: :ok

stop_server/0