limiting

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "strategy-plugin-limiting"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, cfg *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Cache eosc.RequireId `json:"cache" skill:"github.com/eolinker/apinto/resources.resources.ICache" required:"false" label:"缓存位置"`
}

type Strategy

type Strategy struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func (*Strategy) CheckSkill

func (s *Strategy) CheckSkill(skill string) bool

func (*Strategy) Destroy

func (s *Strategy) Destroy()

func (*Strategy) DoFilter

func (s *Strategy) DoFilter(ctx eoscContext.EoContext, next eoscContext.IChain) (err error)

func (*Strategy) Reset

func (s *Strategy) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) error

func (*Strategy) Start

func (s *Strategy) Start() error

func (*Strategy) Stop

func (s *Strategy) Stop() error

Jump to

Keyboard shortcuts

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