base_domain

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Exps       []string `yaml:"exps"`
	DomainSets []string `yaml:"domain_sets"`
	Files      []string `yaml:"files"`
}

func ParseQuickSetupArgs

func ParseQuickSetupArgs(s string) *Args

ParseQuickSetupArgs parses expressions and domain set to args. Format: "([exp] | [$domain_set_tag] | [&domain_list_file])..."

type MatchFunc

type MatchFunc func(qCtx *query_context.Context, m domain.Matcher[struct{}]) (bool, error)

type Matcher

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

func NewMatcher

func NewMatcher(bq sequence.BQ, args *Args, f MatchFunc) (m *Matcher, err error)

func (*Matcher) Match

func (m *Matcher) Match(_ context.Context, qCtx *query_context.Context) (bool, error)

Jump to

Keyboard shortcuts

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