ipdata_app (ipdata v1.1.0)

View Source

Application behaviour callback for the ipdata library.

The application depends on inets, ssl and public_key, which application:ensure_all_started(ipdata) starts first. On start it brings up the ipdata httpc profile that holds the persistent connections used by every request (see ipdata_http:start_profile/0), then launches the top-level supervisor. On stop the profile and its connections are closed.

Summary

Functions

Start the ipdata application.

Stop the ipdata application.

Functions

start(StartType, StartArgs)

-spec start(application:start_type(), term()) -> {ok, pid()} | {error, term()}.

Start the ipdata application.

Starts the ipdata httpc profile (accepting one that is already running) and applies ipdata_http:profile_options/0 before the supervisor is started.

stop(State)

-spec stop(term()) -> ok.

Stop the ipdata application.

Stops the ipdata httpc profile, closing its connections.