View Source esockd_access (esockd v5.9.3-rc.1)

Link to this section Summary

Functions

Build CIDR, compile rule.
Match Addr with Access Rules.

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().
Build CIDR, compile rule.
-spec match(inet:ip_address(), [compiled_rule()]) -> {matched, allow} | {matched, deny} | nomatch.
Match Addr with Access Rules.