Documentation ¶
Index ¶
- Constants
- func Check(cfg *Config, workers map[eosc.RequireId]eosc.IWorker) error
- func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func DoStrategy(ctx eocontext.EoContext, next eocontext.IChain) error
- func Register(register eosc.IExtenderDriverRegister)
- type ActuatorSet
- type Config
- type Controller
- func (c *Controller) AllWorkers() []string
- func (c *Controller) Check(cfg interface{}) (profession, name, driver, desc string, err error)
- func (c *Controller) ConfigType() reflect.Type
- func (c *Controller) Del(id string)
- func (c *Controller) Get() interface{}
- func (c *Controller) Mode() eosc.SettingMode
- func (c *Controller) Set(conf interface{}) (err error)
- func (c *Controller) Store(id string)
- type Rule
- type Visit
- type VisitRule
Constants ¶
View Source
const Name = "strategy-visit"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActuatorSet ¶
type ActuatorSet interface { strategy.IStrategyHandler Set(string, *visitHandler) Del(id string) }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
func (*Controller) AllWorkers ¶
func (c *Controller) AllWorkers() []string
func (*Controller) Check ¶
func (c *Controller) Check(cfg interface{}) (profession, name, driver, desc string, err error)
func (*Controller) ConfigType ¶
func (c *Controller) ConfigType() reflect.Type
func (*Controller) Del ¶
func (c *Controller) Del(id string)
func (*Controller) Get ¶
func (c *Controller) Get() interface{}
func (*Controller) Mode ¶
func (c *Controller) Mode() eosc.SettingMode
func (*Controller) Set ¶
func (c *Controller) Set(conf interface{}) (err error)
func (*Controller) Store ¶
func (c *Controller) Store(id string)
type Rule ¶
type Rule struct { VisitRule VisitRule `json:"visit_rule" label:"访问规则"` InfluenceSphere strategy.FilterConfig `json:"influence_sphere" label:"生效范围"` Continue bool `json:"continue" label:"继续匹配其他访问策略"` }
Click to show internal directories.
Click to hide internal directories.