github.com/SupersunnySea/draft@v0.16.0/examples/example-erlang/src/draft_example_app.erl (about) 1 %%%------------------------------------------------------------------- 2 %% @doc draft_example public API 3 %% @end 4 %%%------------------------------------------------------------------- 5 6 -module(draft_example_app). 7 8 -behaviour(application). 9 10 %% Application callbacks 11 -export([start/2, stop/1]). 12 13 %%==================================================================== 14 %% API 15 %%==================================================================== 16 17 start(_StartType, _StartArgs) -> 18 draft_example_sup:start_link(). 19 20 %%-------------------------------------------------------------------- 21 stop(_State) -> 22 ok. 23 24 %%==================================================================== 25 %% Internal functions 26 %%====================================================================