Documentation ¶
Index ¶
- type ListMatcher
- type Matcher
- func NewDomainListMatcherFormFile(file string, continueOnInvalidString bool) (Matcher, error)
- func NewDomainListMatcherFormReader(r io.Reader, continueOnInvalidString bool) (Matcher, error)
- func NewDomainMatcherFormFile(file string) (Matcher, error)
- func NewV2MatcherFromFile(file, tag string) (Matcher, error)
- type V2Matcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListMatcher ¶
type ListMatcher struct {
// contains filtered or unexported fields
}
func NewListMatcher ¶
func NewListMatcher() *ListMatcher
func (*ListMatcher) Add ¶
func (l *ListMatcher) Add(fqdn string)
func (*ListMatcher) Len ¶
func (l *ListMatcher) Len() int
func (*ListMatcher) Match ¶
func (l *ListMatcher) Match(fqdn string) bool
type Matcher ¶
func NewDomainListMatcherFormFile ¶ added in v1.5.7
func NewDomainListMatcherFormReader ¶ added in v1.5.7
func NewDomainMatcherFormFile ¶ added in v1.5.7
NewDomainMatcherFormFile loads a list matcher or a v2fly matcher from file. if file has a ':' and has format like 'geosite:cn', a v2fly matcher will be returned.
func NewV2MatcherFromFile ¶ added in v1.5.7
Click to show internal directories.
Click to hide internal directories.