domainfilter

package
v0.0.0-...-c01f1ba Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFilter

func AddFilter(List []string)

func CheckDomain

func CheckDomain(hostname []byte) bool

func UpgradeFilter

func UpgradeFilter()

Types

type DomainFilter

type DomainFilter struct {
	// contains filtered or unexported fields
}
var (
	DefaultFilter *DomainFilter
)

func New

func New(domainList []string) *DomainFilter

func (*DomainFilter) AddDomainList

func (d *DomainFilter) AddDomainList(domainList []string)

func (*DomainFilter) Lookup

func (d *DomainFilter) Lookup(domain []byte) bool

func (*DomainFilter) Reset

func (d *DomainFilter) Reset()

Jump to

Keyboard shortcuts

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