filter

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLFilter

type URLFilter interface {
	Filter(targetURL *url.URL) bool
}

URLFilter is the interface of URL filter

type URLPathFilter

type URLPathFilter struct {
	PathPrefix []string
}

URLPathFilter filters the URL with path

func (*URLPathFilter) Filter

func (f *URLPathFilter) Filter(targetURL *url.URL) bool

Filter implements the URLFilter

Jump to

Keyboard shortcuts

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