Module us_web_app

The main entry point of the US-Web active OTP application.

Behaviours: application.

Description

The main entry point of the US-Web active OTP application.

Typically triggered:

- through OTP/rebar3, by ebin/us_web.app (as obtained from conf/us_web.app.src; see start/2)

- directly, with the help of Myriad's otp_utils (see exec/0)

Data Types

application_name()

application_name() = otp_utils:application_name()

Function Index

exec/0Runs US-Web, directly (e.g.
start/2Called when US-Web itself is started as an OTP application (as opposed to natively, "manually", see exec/0).
start_application/1Starts required applications (not used currently).
stop/1Stops the US-Web application.

Function Details

exec/0

exec() -> void()

Runs US-Web, directly (e.g. as 'make us_web_exec') rather than as an OTP release.

start/2

start(StartType, StartArgs) -> any()

Called when US-Web itself is started as an OTP application (as opposed to natively, "manually", see exec/0).

The setup and dependency management shall have been done already by the OTP release system. So here no ebin path to set or prerequisite applications to start for applications listed in US-Web's .app file, we focus only on the applications not listed whereas possibly useful in this context (shotgun, elli) and on us_web itself.

Note that it may easier/more reliable to add these applications directly in the OTP release / rebar configuration.

start_application/1

start_application(App::application_name()) -> void()

Starts required applications (not used currently).

stop/1

stop(State) -> any()

Stops the US-Web application.


Generated by EDoc