Brook.Dispatcher behaviour (brook_stream v1.0.0)
Defines the Brook Dispatcher behaviour, requiring the
init/0
and dispatch/1
functions be implemented by
the client.
Link to this section Summary
Link to this section Callbacks
Link to this callback
dispatch(instance, t)
@callback dispatch(Brook.instance(), Brook.Event.t()) :: :ok
Distributes received messages across multiple nodes.
Link to this callback
init(list)
@callback init([{:instance, Brook.instance()}]) :: :ok
Start a Brook dispatcher.