You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 line
1.4 KiB

  1. -module({{srvid}}).
  2. -behaviour(gen_server).
  3. -define(SERVER, ?MODULE).
  4. %% ------------------------------------------------------------------
  5. %% API Function Exports
  6. %% ------------------------------------------------------------------
  7. -export([start_link/0]).
  8. %% ------------------------------------------------------------------
  9. %% gen_server Function Exports
  10. %% ------------------------------------------------------------------
  11. -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
  12. %% ------------------------------------------------------------------
  13. %% API Function Definitions
  14. %% ------------------------------------------------------------------
  15. start_link() ->
  16. gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
  17. %% ------------------------------------------------------------------
  18. %% gen_server Function Definitions
  19. %% ------------------------------------------------------------------
  20. init(Args) ->
  21. {ok, Args}.
  22. handle_call(_Request, _From, State) ->
  23. {noreply, ok, State}.
  24. handle_cast(_Msg, State) ->
  25. {noreply, State}.
  26. handle_info(_Info, State) ->
  27. {noreply, State}.
  28. terminate(_Reason, _State) ->
  29. ok.
  30. code_change(_OldVsn, State, _Extra) ->
  31. {ok, State}.
  32. %% ------------------------------------------------------------------
  33. %% Internal Function Definitions
  34. %% ------------------------------------------------------------------