brook v0.6.0 Brook.Driver.Default

Default implmentation of the Brook.Driver behaviour. Simply casts the event to the Brook server by way of a registry lookup.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Initializes the default Brook driver with an empty state.

Takes event data and casts to the Brook server to process.

Start the default Brooker driver GenServer and link it to the current process.

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.

Initializes the default Brook driver with an empty state.

Link to this function

send_event(instance, type, event)

Takes event data and casts to the Brook server to process.

Link to this function

start_link(args)

Start the default Brooker driver GenServer and link it to the current process.