rule

package
v4.45.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 8 Imported by: 1

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