domain

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: GPL-2.0 Imports: 8 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdGuardMatcher added in v0.5.0

type AdGuardMatcher struct {
	// contains filtered or unexported fields
}

func NewAdGuardMatcher added in v0.5.0

func NewAdGuardMatcher(ruleLines []string) *AdGuardMatcher

func ReadAdGuardMatcher added in v0.5.0

func ReadAdGuardMatcher(reader varbin.Reader) (*AdGuardMatcher, error)

func (*AdGuardMatcher) Dump added in v0.5.0

func (m *AdGuardMatcher) Dump() (ruleLines []string)

func (*AdGuardMatcher) Match added in v0.5.0

func (m *AdGuardMatcher) Match(domain string) bool

func (*AdGuardMatcher) Write added in v0.5.0

func (m *AdGuardMatcher) Write(writer varbin.Writer) error

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher(domains []string, domainSuffix []string, generateLegacy bool) *Matcher

func ReadMatcher added in v0.3.0

func ReadMatcher(reader varbin.Reader) (*Matcher, error)

func (*Matcher) Dump added in v0.5.0

func (m *Matcher) Dump() (domainList []string, prefixList []string)

func (*Matcher) Match

func (m *Matcher) Match(domain string) bool

func (*Matcher) Write added in v0.3.0

func (m *Matcher) Write(writer varbin.Writer) error

Jump to

Keyboard shortcuts

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