Add conn/0 type

This commit is contained in:
Feng Lee 2019-08-02 11:02:46 +08:00
parent 2fdda99d6d
commit cf9caf3c32
1 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,8 @@
, subid/0
]).
-export_type([ client/0
-export_type([ conn/0
, client/0
, client_id/0
, username/0
, password/0
@ -89,6 +90,12 @@
-type(topic() :: emqx_topic:topic()).
-type(subid() :: binary() | atom()).
-type(conn() :: #{peername := peername(),
sockname := peername(),
peercert := esockd_peercert:peercert(),
conn_mod := module(),
atom() => term()
}).
-type(client() :: #{zone := zone(),
conn_mod := maybe(module()),
peername := peername(),