brook v0.6.0 Brook.Config

Constructs a new Brook server config struct from a keyword list of inputs.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Take a keyword list and extracts values necessary to configure a Brook server. Provides default values for the driver and dipatcher but fails if event_handler or storage are not supplied by the user.

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.

Link to this function

dispatcher(instance)

Link to this function

driver(instance)

Link to this function

event_handlers(instance)

Link to this function

event_processing_timeout(instance)

Link to this function

get(instance, key)

Link to this function

handle_continue(atom, state)

Callback implementation for GenServer.handle_continue/2.

Callback implementation for GenServer.init/1.

Link to this function

new(opts)

new(keyword()) :: map()

Take a keyword list and extracts values necessary to configure a Brook server. Provides default values for the driver and dipatcher but fails if event_handler or storage are not supplied by the user.

Link to this function

put(instance, key, value)

Link to this function

registry(instance)

Link to this function

start_link(args)

Link to this function

storage(instance)