access_relational

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "access_relational"
)

Variables

This section is empty.

Functions

func Check

func Check(v *Config, workers map[eosc.RequireId]eosc.IWorker) error

func Create

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

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

func (*AccessRelational) CheckSkill

func (w *AccessRelational) CheckSkill(skill string) bool

func (*AccessRelational) Destroy

func (w *AccessRelational) Destroy()

func (*AccessRelational) DoFilter

func (w *AccessRelational) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)

func (*AccessRelational) DoHttpFilter

func (w *AccessRelational) DoHttpFilter(ctx http_context.IHttpContext, next eocontext.IChain) (err error)

func (*AccessRelational) Reset

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

func (*AccessRelational) Start

func (w *AccessRelational) Start() error

func (*AccessRelational) Stop

func (w *AccessRelational) Stop() error

type Config

type Config struct {
	Rules    []*Rule            `` /* 153-byte string literal not displayed */
	Response *response.Response `yaml:"response" json:"response" label:"响应内容" description:"请求被拦截时响应的内容"`
}

type Rule

type Rule struct {
	A string `yaml:"a" json:"a,omitempty" label:"Key A" description:"A key 规则,支持#{}的metrics语法" require:"true"` // ser: #{label service} =>  service: uuid
	B string `yaml:"b" json:"b,omitempty" label:"key B" description:"B Key 规则,支持#{}的metrics语法" require:"true"` // {appid}
}

Jump to

Keyboard shortcuts

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