Sugar.App
SourceSummary↑
get_port(opts) | Grabs the application’s running port number or |
start() | Starts the application, checking if it’s already been started |
start(type, args) | Callback for |
stop(state) | Callback for |
Functions
Specs:
- get_port(Keyword.t) :: pos_integer
Grabs the application’s running port number or 4000
when
opts
doesn’t contain the :port
keyword.
Arguments
opts
-Keyword
- options
Returns
Integer
Specs:
- start :: :ok
Starts the application, checking if it’s already been started.
Specs:
- start(atom, Keyword.t) :: {:ok, pid}
Callback for start/2
. Starts the supervisor.
Specs:
- stop(any) :: :ok
Callback for stop/1
.