Documentation ¶
Index ¶
- func ParseDomainRule(ctx context.Context, domain string) ([]*router.Domain, error)
- func ParseIP(s string) (*router.CIDR, error)
- func ParseRule(ctx context.Context, msg json.RawMessage) (*router.RoutingRule, error)
- func ToCidrList(ctx context.Context, ips cfgcommon.StringList) ([]*router.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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.