domain_set

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "domain_set"

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args any) (any, error)

func LoadExps

func LoadExps(exps []string, m *domain.MixMatcher[struct{}]) error

func LoadExpsAndFiles

func LoadExpsAndFiles(exps []string, fs []string, m *domain.MixMatcher[struct{}]) error

func LoadFile

func LoadFile(f string, m *domain.MixMatcher[struct{}]) error

func LoadFiles

func LoadFiles(fs []string, m *domain.MixMatcher[struct{}]) error

Types

type Args

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

type DomainSet

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

func NewDomainSet

func NewDomainSet(bp *coremain.BP, args *Args) (*DomainSet, error)

NewDomainSet inits a DomainSet from given args.

func (*DomainSet) GetDomainMatcher

func (d *DomainSet) GetDomainMatcher() domain.Matcher[struct{}]

type MatcherGroup

type MatcherGroup []domain.Matcher[struct{}]

func (MatcherGroup) Match

func (mg MatcherGroup) Match(s string) (struct{}, bool)

Jump to

Keyboard shortcuts

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