rule

package
v4.0.0-...-960decf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDomainRule

func ParseDomainRule(ctx context.Context, domain string) ([]*router.Domain, error)

func ParseIP

func ParseIP(s string) (*router.CIDR, error)

func ParseRule

func ParseRule(ctx context.Context, msg json.RawMessage) (*router.RoutingRule, error)

func ToCidrList

func ToCidrList(ctx context.Context, ips cfgcommon.StringList) ([]*router.GeoIP, error)

Types

type RouterRule

type RouterRule struct {
	Type        string `json:"type"`
	OutboundTag string `json:"outboundTag"`
	BalancerTag string `json:"balancerTag"`

	DomainMatcher string `json:"domainMatcher"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL