Documentation ¶
Index ¶
- Variables
- func BypassGroup(bypasses ...bypass.Bypass) bypass.Bypass
- func NewBypass(opts ...Option) bypass.Bypass
- type Option
- func FileLoaderOption(fileLoader loader.Loader) Option
- func HTTPLoaderOption(httpLoader loader.Loader) Option
- func LoggerOption(logger logger.Logger) Option
- func MatchersOption(matchers []string) Option
- func RedisLoaderOption(redisLoader loader.Loader) Option
- func ReloadPeriodOption(period time.Duration) Option
- func WhitelistOption(whitelist bool) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBypass = errors.New("bypass")
)
Functions ¶
Types ¶
type Option ¶
type Option func(opts *options)
func FileLoaderOption ¶
func HTTPLoaderOption ¶
func LoggerOption ¶
func MatchersOption ¶
func RedisLoaderOption ¶
func ReloadPeriodOption ¶
func WhitelistOption ¶
Click to show internal directories.
Click to hide internal directories.