Wobserver v0.1.8 Wobserver.Application View Source
Sets up the main routers with Cowboy.
Link to this section Summary
Link to this section Functions
The port the application uses.
Link to this function
start(type, args)
View Source
start(term, term) :: {:ok, pid} | {:ok, pid, state :: any} | {:error, reason :: term}
Starts wobserver
.
The option :mode
is used to determine how to start wobserver
.
The following values are possible:
:standalone
, starts a supervisor that supervises cowboy.:plug
, passes the Agent storage of the metrics back as pid, without starting any extra processes.
In :plug
mode no cowboy/ranch server is started, so the wobserver
router will need to be called from somewhere else.
Note: both type
and args
are unused.