Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (63 sloc) 2.83 KB

Module my_request

Behaviours: gen_fsm.

Function Index

auth/2
check_clean_pass/2
check_sha1_pass/2
code_change/4
handle_event/3
handle_info/3
handle_sync_event/4
init/1
normal/2
sha1_hex/1
start/4
terminate/3
to_hex/1

Function Details

auth/2

auth(Request, State) -> any()

check_clean_pass/2


check_clean_pass(Pass::binary(), Salt::binary()) -> binary()

check_sha1_pass/2


check_sha1_pass(Pass::binary(), Salt::binary()) -> binary()

code_change/4

code_change(OldVsn, StateName, StateData, Extra) -> any()

handle_event/3

handle_event(Event, StateName, StateData) -> any()

handle_info/3

handle_info(Info, StateName, State) -> any()

handle_sync_event/4

handle_sync_event(Event, From, StateName, StateData) -> any()

init/1

init(X1) -> any()

normal/2

normal(Request, State) -> any()

sha1_hex/1


sha1_hex(Data::binary()) -> binary()

start/4


start(Socket::gen_tcp:socket(), Id::pos_integer(), Handler::atom(), ParseQuery::boolean()) -> {ok, pid()}

terminate/3

terminate(Reason, StateName, State) -> any()

to_hex/1


to_hex(Hash::binary() | undefined) -> binary()

You can’t perform that action at this time.