camarero v0.3.0 Camarero.Catering.Routes View Source
Internal state for all the routes known to this application
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Retrieves the handler for the route specified
Stores a handler for the route specified
Starts an agent linked to the current process
Returns the whole mapping of routes to handlers
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: map()
t() :: map()
Link to this section Functions
Link to this function
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
get(key) View Source
Retrieves the handler for the route specified
Link to this function
put(key, value) View Source
Stores a handler for the route specified
Link to this function
start_link(opts \\ [], initial \\ %{}) View Source
Starts an agent linked to the current process
Link to this function
state()
View Source
state()
View Source
state() :: map()
state() :: map()
Returns the whole mapping of routes to handlers