tai v0.0.28 Tai.Events

Link to this section Summary

Link to this section Types

Link to this type

event()

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

level()

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

subscribe_error_reasons()

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

Link to this section Functions

Link to this function

broadcast(event, level)

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

child_spec(opts)

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

debug(event)

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

error(event)

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

firehose_subscribe()

firehose_subscribe() :: {:ok, pid()} | {:error, subscribe_error_reasons()}
Link to this function

info(event)

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

start_link(partitions)

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

subscribe(event_type)

subscribe(event_type :: atom()) ::
  {:ok, pid()} | {:error, :subscribe_error_reasons}
Link to this function

warn(event)

warn(event()) :: :ok