Workbench.Schoolbus (workbench v0.0.6)

Link to this section Summary

Link to this section Types

Specs

option() :: topics_opt() | partitions_opt()
Link to this type

partitions_opt()

Specs

partitions_opt() :: {:partitions, pos_integer()}
Link to this type

subscription()

Specs

subscription() :: {topic(), pid()}

Specs

topic() :: atom() | {atom(), atom()}
Link to this type

topic_match()

Specs

topic_match() :: topic() | {atom(), String.t()}
Link to this type

topics_opt()

Specs

topics_opt() :: {:topics, [topic()]}

Link to this section Functions

Link to this function

broadcast(topic, message)

Specs

broadcast(topic(), term()) :: :ok
Link to this function

child_spec(opts)

Specs

child_spec(opts :: term()) :: Supervisor.child_spec()
Link to this function

register(topic)

Specs

register(topic()) :: :ok
Link to this function

start_link(opts)

Specs

start_link([option()]) :: {:ok, pid()} | {:error, term()}
Link to this function

subscribe(topic)

Specs

subscribe(topic_match()) :: {:ok, [topic()]}

Specs

subscribers() :: [subscription()]

Specs

topics() :: [topic()]
Link to this function

unsubscribe(topic)

Specs

unsubscribe(topic()) :: :ok