Skip to content

Instantly share code, notes, and snippets.

@hiyosi
Created September 24, 2011 06:58
Show Gist options
  • Save hiyosi/1239060 to your computer and use it in GitHub Desktop.
Save hiyosi/1239060 to your computer and use it in GitHub Desktop.
関数名を整理(before)
select(get_all, Table) ->
gen_server:call(?MODULE, {get_all, Table});
select(get_uri, Id) ->
gen_server:call(?MODULE, {get_uri, Id});
select(get_condition, Id) ->
gen_server:call(?MODULE, {get_condition, Id}).
get_id() ->
gen_server:call(?MODULE, {get_id}).
add(add_list, Id, System, Uri, Port) ->
gen_server:call(?MODULE, {add_list, Id, System, Uri, Port});
add(add_result, ListId, MonTime, Status, Result) ->
gen_server:call(?MODULE, {add_result, ListId, MonTime, Status, Result}).
del({del_list, Id}) ->
gen_server:call(?MODULE, {del_list, Id});
del({del_result, Id}) ->
gen_server:call(?MODULE, {del_result, Id}).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment