rule

package
v5.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDomainRule

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

func ParseIP

func ParseIP(s string) (*routercommon.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) ([]*routercommon.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