blocklist

package
v0.0.0-...-09efcc3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocklist

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

Blocklist implements a simple blocklist checking mechanism, supporting RegEx and negation.

func New

func New(data string) (*Blocklist, error)

func (*Blocklist) IsBlocked

func (l *Blocklist) IsBlocked(value string) bool

func (*Blocklist) NumEntries

func (l *Blocklist) NumEntries() int

Jump to

Keyboard shortcuts

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