domain

package
v0.3.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: GPL-2.0 Imports: 6 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

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

func NewMatcher

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

func ReadMatcher added in v0.3.0

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

func (*Matcher) Match

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

func (*Matcher) Write added in v0.3.0

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

Jump to

Keyboard shortcuts

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