strategy

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterConfig

type FilterConfig map[string][]string

type FilterItem

type FilterItem struct {
	checker.Handler
	// contains filtered or unexported fields
}

type Filters

type Filters []*FilterItem

func (Filters) Check

func (fs Filters) Check(ctx eocontext.EoContext) bool

type IChecker added in v0.17.7

type IChecker interface {
	Check(v string) bool
	Key() string
	Value() string
}

type IFilter

type IFilter interface {
	Check(ctx eoscContext.EoContext) bool
}

func ParseFilter

func ParseFilter(config FilterConfig) (IFilter, error)

type IFilters

type IFilters []IFilter

func (IFilters) Check

func (fs IFilters) Check(ctx eoscContext.EoContext) bool

type IPChecker added in v0.17.7

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

func (*IPChecker) Check added in v0.17.7

func (i *IPChecker) Check(v string, has bool) bool

func (*IPChecker) CheckType added in v0.17.7

func (i *IPChecker) CheckType() checker.CheckType

func (*IPChecker) Key added in v0.17.7

func (i *IPChecker) Key() string

func (*IPChecker) Value added in v0.17.7

func (i *IPChecker) Value() string

type IStrategyHandler

type IStrategyHandler interface {
	Strategy(ctx eoscContext.EoContext, next eoscContext.IChain) error
}

Jump to

Keyboard shortcuts

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