rule

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainIPSetRulesDBFilename = "domain-ip-set-rules.db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainIPSetRulesQueryStore added in v0.1.1

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

func NewDomainIPSetRulesQueryStore added in v0.1.1

func NewDomainIPSetRulesQueryStore() (*DomainIPSetRulesQueryStore, error)

func (*DomainIPSetRulesQueryStore) Close added in v0.1.1

func (store *DomainIPSetRulesQueryStore) Close()

type Matcher

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

func NewMatcher added in v0.1.1

func NewMatcher(matchRules []string) *Matcher

func (*Matcher) CopyWithBakedRulesOnly added in v0.1.1

func (matcher *Matcher) CopyWithBakedRulesOnly() *Matcher

func (*Matcher) MatchDomain

func (matcher *Matcher) MatchDomain(domain string) bool

func (*Matcher) MatchIP

func (matcher *Matcher) MatchIP(ip *netip.Addr) bool

func (*Matcher) SetupRulesData added in v0.1.1

func (matcher *Matcher) SetupRulesData(rulesQueryStore *DomainIPSetRulesQueryStore) error

func (*Matcher) UnmarshalJSON

func (matcher *Matcher) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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