Documentation ¶
Index ¶
- func ParseDomainRule(ctx context.Context, domain string) ([]*routercommon.Domain, error)
- func ParseIP(s string) (*routercommon.CIDR, error)
- func ParseRule(ctx context.Context, msg json.RawMessage) (*router.RoutingRule, error)
- func ToCidrList(ctx context.Context, ips cfgcommon.StringList) ([]*routercommon.GeoIP, error)
- type RouterRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDomainRule ¶
func ParseRule ¶
func ParseRule(ctx context.Context, msg json.RawMessage) (*router.RoutingRule, error)
func ToCidrList ¶
func ToCidrList(ctx context.Context, ips cfgcommon.StringList) ([]*routercommon.GeoIP, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.