Add ok_or_error/1 type
This commit is contained in:
parent
4635921458
commit
5e3aed0b73
|
@ -17,7 +17,7 @@
|
||||||
-include("emqx.hrl").
|
-include("emqx.hrl").
|
||||||
|
|
||||||
-export_type([zone/0]).
|
-export_type([zone/0]).
|
||||||
-export_type([startlink_ret/0]).
|
-export_type([startlink_ret/0, ok_or_error/1]).
|
||||||
-export_type([pubsub/0, topic/0, subid/0, subopts/0]).
|
-export_type([pubsub/0, topic/0, subid/0, subopts/0]).
|
||||||
-export_type([client_id/0, username/0, password/0, peername/0, protocol/0]).
|
-export_type([client_id/0, username/0, password/0, peername/0, protocol/0]).
|
||||||
-export_type([credentials/0, session/0]).
|
-export_type([credentials/0, session/0]).
|
||||||
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
-type(zone() :: atom()).
|
-type(zone() :: atom()).
|
||||||
-type(startlink_ret() :: {ok, pid()} | ignore | {error, term()}).
|
-type(startlink_ret() :: {ok, pid()} | ignore | {error, term()}).
|
||||||
|
-type(ok_or_error(Reason) :: ok | {error, Reason}).
|
||||||
-type(pubsub() :: publish | subscribe).
|
-type(pubsub() :: publish | subscribe).
|
||||||
-type(topic() :: binary()).
|
-type(topic() :: binary()).
|
||||||
-type(subid() :: binary() | atom()).
|
-type(subid() :: binary() | atom()).
|
||||||
|
|
Loading…
Reference in New Issue