summaryrefslogtreecommitdiff
path: root/priv/templates/otp_srv.erl
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/otp_srv.erl')
-rw-r--r--priv/templates/otp_srv.erl63
1 files changed, 0 insertions, 63 deletions
diff --git a/priv/templates/otp_srv.erl b/priv/templates/otp_srv.erl
deleted file mode 100644
index 11609c0..0000000
--- a/priv/templates/otp_srv.erl
+++ /dev/null
@@ -1,63 +0,0 @@
-%%%-------------------------------------------------------------------
-%% @copyright {{copyright_holder}} ({{copyright_year}})
-%% @author {{author_name}} <{{author_email}}>
-%% @doc {{appid}} {{srvid}} OTP gen_server.
-%% @end
-%%%-------------------------------------------------------------------
-
--module({{appid}}_{{srvid}}).
-
--behaviour(gen_server).
-
--include("{{appid}}_log.hrl").
-
-%% API
--export([start_link/0
- ]).
-
-%% gen_server callbacks
--export([init/1, handle_call/3, handle_cast/2, handle_info/2,
- terminate/2, code_change/3]).
-
--record(state, {replaceme}).
-
-%%====================================================================
-%% API
-%%====================================================================
-start_link() ->
- gen_server:start_link(?MODULE, [], []).
-
-%%====================================================================
-%% gen_server callbacks
-%%====================================================================
-
-%% @private
-init([]) ->
- {ok, #state{}}.
-
-%% @private
-handle_call(Call, _From, State) ->
- ?WARN("Unexpected call ~p.", [Call]),
- {noreply, State}.
-
-%% @private
-handle_cast(Msg, State) ->
- ?WARN("Unexpected cast ~p", [Msg]),
- {noreply, State}.
-
-%% @private
-handle_info(Info, State) ->
- ?WARN("Unexpected info ~p", [Info]),
- {noreply, State}.
-
-%% @private
-terminate(_Reason, _State) ->
- ok.
-
-%% @private
-code_change(_OldVsn, State, _Extra) ->
- {ok, State}.
-
-%%====================================================================
-%% internal functions
-%%====================================================================