Documentation
¶
Index ¶
- type DomainMatcher
- 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 DomainMatcher ¶ added in v0.18.0
type DomainMatcher struct {
// contains filtered or unexported fields
}
func NewListMatcher ¶
func NewListMatcher() *DomainMatcher
func (*DomainMatcher) Add ¶ added in v0.18.0
func (l *DomainMatcher) Add(fqdn string, v interface{})
func (*DomainMatcher) Len ¶ added in v0.18.0
func (l *DomainMatcher) Len() int
func (*DomainMatcher) Match ¶ added in v0.18.0
func (l *DomainMatcher) Match(fqdn string) (v interface{}, ok 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) (v interface{}, ok bool)
Click to show internal directories.
Click to hide internal directories.