filter

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchPath

func MatchPath(requestPath string, availableField string) bool

Types

type Filter

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

func NewFilter

func NewFilter(availableFields, excludedFields []string) *Filter

func (*Filter) Apply

func (f *Filter) Apply(ss []string) []string

func (*Filter) Check

func (f *Filter) Check(field string) bool

func (*Filter) IsWhitelistWildcard

func (f *Filter) IsWhitelistWildcard() bool

Jump to

Keyboard shortcuts

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