Documentation ¶
Index ¶
- Variables
- func ResetCache()
- type Ruleset
- func (rs *Ruleset) CountryMatch(country string) bool
- func (rs *Ruleset) DirectMatch(host string) bool
- func (rs *Ruleset) IfIPCountryMatch(country string) bool
- func (rs *Ruleset) LoadFromReader(reader bufio.Reader) error
- func (rs *Ruleset) MatchStrategy() int
- func (rs *Ruleset) PrintStats()
- func (rs *Ruleset) Reload() (err error)
- func (rs *Ruleset) SpecialMatch(host string) bool
- func (rs *Ruleset) WildcardMatch(host string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Direct = 0 IPIfNonDomainMatch = 1 OnlyDomainMatch = 2 OnlyIPMatch = 3 )
Functions ¶
func ResetCache ¶
func ResetCache()
Types ¶
type Ruleset ¶
type Ruleset struct {
// contains filtered or unexported fields
}
func (*Ruleset) CountryMatch ¶
func (*Ruleset) DirectMatch ¶
func (*Ruleset) IfIPCountryMatch ¶
func (*Ruleset) MatchStrategy ¶
func (*Ruleset) PrintStats ¶
func (rs *Ruleset) PrintStats()
func (*Ruleset) SpecialMatch ¶
func (*Ruleset) WildcardMatch ¶
Click to show internal directories.
Click to hide internal directories.