Add init callback to emqttd_auth_mod, fix #318

This commit is contained in:
J Phani Mahesh 2015-09-28 17:06:13 +05:30
parent 8dfb28e243
commit 663fc7829b
1 changed files with 2 additions and 0 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(),