View Source WobserverNG.Application (Wobserver NG v1.14.0)
Sets up the main routers with Cowboy.
Link to this section Summary
Link to this section Functions
@spec port() :: integer()
The port the application uses.
@spec 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.