View Source esockd_access (esockd v5.9.3-rc.1)
Link to this section Summary
Link to this section Types
-type compiled_rule() :: {allow, all} | {allow, esockd_cidr:cidr()} | {deny, all} | {deny, esockd_cidr:cidr()}.
-type rule() :: {allow, all} | {allow, string()} | {deny, all} | {deny, string()}.
Link to this section Functions
-spec compile(rule()) -> compiled_rule().
-spec match(inet:ip_address(), [compiled_rule()]) -> {matched, allow} | {matched, deny} | nomatch.