cache

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *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