public
Created

  • Download Gist
test.erl
Erlang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
-module(test).
-behaviour(gen_server).
 
-export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
 
%% API functions
start_link() ->
gen_server:start(?MODULE, [], []).
 
init([]) ->
{ok, []}.
 
handle_call(_Msg, _From, State) ->
{reply, unknown_message, State}.
 
handle_cast(_Msg, State) ->
{noreply, State}.
 
handle_info(_Info, State) ->
{noreply, State}.
 
terminate(_Reason, _State) ->
ok.
code_change(_OldVsn, State, _Extra) ->
{ok, State}.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.