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 MatcherGroup
- 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 NewDomainMatcherFormFile ¶
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 ¶
type MatcherGroup ¶
type MatcherGroup struct {
// contains filtered or unexported fields
}
func NewMatcherGroup ¶
func NewMatcherGroup(m []Matcher) *MatcherGroup
func (*MatcherGroup) Match ¶
func (mg *MatcherGroup) Match(fqdn string) bool
Click to show internal directories.
Click to hide internal directories.