ergon_app (ergon v0.5.0)
View SourceErgon's application callback.
Starts the connection pool, then the supervision tree. The pool comes first and
lives outside the tree on purpose: pgo:start_pool/2 hands it to pgo_sup,
which already supervises it, and returns a pid nothing here is linked to. See
ergon_repo for why that is not turned into a child spec.
Summary
Functions
-spec start(application:start_type(), term()) -> {ok, pid()} | {error, term()}.
-spec stop(term()) -> ok.