bypass

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBypass = errors.New("bypass")
)

Functions

func BypassGroup added in v0.2.12

func BypassGroup(bypasses ...bypass.Bypass) bypass.Bypass

func NewBypass

func NewBypass(opts ...Option) bypass.Bypass

NewBypass creates and initializes a new Bypass. The rules will be reversed if the reverse option is true.

Types

type Option

type Option func(opts *options)

func FileLoaderOption

func FileLoaderOption(fileLoader loader.Loader) Option

func HTTPLoaderOption

func HTTPLoaderOption(httpLoader loader.Loader) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

func MatchersOption

func MatchersOption(matchers []string) Option

func RedisLoaderOption

func RedisLoaderOption(redisLoader loader.Loader) Option

func ReloadPeriodOption

func ReloadPeriodOption(period time.Duration) Option

func WhitelistOption

func WhitelistOption(whitelist bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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