This commit is contained in:
Feng Lee 2015-09-28 21:45:44 +08:00
parent df1913902d
commit 23095af55f
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,8 @@
-ifdef(use_specs). -ifdef(use_specs).
-callback init(AuthOpts :: list()) -> {ok, State :: any()}.
-callback check(Client, Password, State) -> ok | ignore | {error, string()} when -callback check(Client, Password, State) -> ok | ignore | {error, string()} when
Client :: mqtt_client(), Client :: mqtt_client(),
Password :: binary(), Password :: binary(),
@ -48,7 +50,7 @@
-export([behaviour_info/1]). -export([behaviour_info/1]).
behaviour_info(callbacks) -> behaviour_info(callbacks) ->
[{check, 3}, {description, 0}]; [{init, 1}, {check, 3}, {description, 0}];
behaviour_info(_Other) -> behaviour_info(_Other) ->
undefined. undefined.