TaiEvents (tai_events v0.0.2)

Link to this section Summary

Link to this section Types

Specs

event() :: TaiEvents.Event.t()
Link to this type

event_type()

Specs

event_type() :: module()

Specs

level() :: :debug | :info | :warning | :error
Link to this type

partitions()

Specs

partitions() :: pos_integer()
Link to this type

subscribe_error_reasons()

Specs

subscribe_error_reasons() ::
  {:already_registered, pid()} | :event_not_registered

Link to this section Functions

Link to this function

broadcast(event, level)

Specs

broadcast(event(), level()) :: :ok
Link to this function

child_spec(opts)

Specs

child_spec(opts :: term()) :: Supervisor.child_spec()

Specs

debug(event()) :: :ok

Specs

error(event()) :: :ok
Link to this function

firehose_subscribe()

Specs

firehose_subscribe() :: {:ok, pid()} | {:error, subscribe_error_reasons()}

Specs

info(event()) :: :ok
Link to this function

start_link(partitions)

Specs

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

subscribe(event_type)

Specs

subscribe(event_type()) :: {:ok, pid()} | {:error, :subscribe_error_reasons}

Specs

warning(event()) :: :ok