filter

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadDomain  = errors.New("domain in blacklist")
	ErrBadKeyword = errors.New("url contains bad keyword")
)

errors

Functions

This section is empty.

Types

type Filter

type Filter interface {
	OK(*url.URL) error
}

func New

func New(conf config.Filter) Filter

Jump to

Keyboard shortcuts

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