strategy

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStrategyHandler

func AddStrategyHandler(handler eocontext.IFilter)

func Strategy

func Strategy(ctx eocontext.EoContext, next eocontext.IChain) error

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 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 IStrategyHandler

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

type IStrategyManager

type IStrategyManager interface {
	AddStrategyHandler(handler eocontext.IFilter)
	Strategy(ctx eocontext.EoContext, next eocontext.IChain) error
}

Jump to

Keyboard shortcuts

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