rule

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPac

func GetPac(proxyHost string) string

func GetRuleList

func GetRuleList() []string

Types

type ClashRuleType

type ClashRuleType string
const (
	ClashRuleTypeDomainSuffix ClashRuleType = "DOMAIN-SUFFIX"
	ClashRuleTypeCIDR         ClashRuleType = "IP-CIDR"
	ClashRuleTypeProcessName  ClashRuleType = "PROCESS-NAME"
)

type NetType

type NetType int
const (
	NetTypeDirect NetType = iota
	NetTypeProxy
	NetTypeAdBlock
	NetTypePrivacy
	NetTypeIDRD
)

type PacConfigType

type PacConfigType int
const (
	PacConfigTypeDisable PacConfigType = iota
	PacConfigTypeDomain
)

type PacTplConfig

type PacTplConfig struct {
	ProxyHost string
	ProxyPort uint32

	ProxyDomainList  pie.Strings
	DirectDomainList pie.Strings
}

type RuleConfig

type RuleConfig struct {
	Type          RuleConfigType
	FileUrl       string
	FileName      string
	PacType       PacConfigType
	NetType       NetType
	ClashRuleType ClashRuleType
}

type RuleConfigType

type RuleConfigType int
const (
	RuleConfigTypeText RuleConfigType = iota
	RuleConfigTypeRuleProvider
	RuleConfigTypeRuleProviderCIDR
)

Jump to

Keyboard shortcuts

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