Documentation ¶
Index ¶
- Constants
- func Check(conf *Config, workers map[eosc.RequireId]eosc.IWorker) error
- func ConvertHeaderKey(header string) string
- func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Config
- type Driver
- type ExtraParam
- type ExtraParams
- func (e *ExtraParams) CheckSkill(skill string) bool
- func (e *ExtraParams) Destroy()
- func (e *ExtraParams) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)
- func (e *ExtraParams) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) error
- func (e *ExtraParams) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) error
- func (e *ExtraParams) Start() error
- func (e *ExtraParams) Stop() error
Constants ¶
View Source
const ( FormParamType string = "application/x-www-form-urlencoded" JsonType string = "application/json" )
View Source
const (
Name = "extra_params"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertHeaderKey ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
func Register ¶
func Register(register eosc.IExtenderDriverRegister)
Types ¶
type Config ¶
type Config struct { Params []*ExtraParam `json:"params" label:"参数列表"` ErrorType string `json:"error_type" enum:"text,json" label:"报错输出格式" ` }
type ExtraParam ¶
type ExtraParams ¶
type ExtraParams struct { drivers.WorkerBase // contains filtered or unexported fields }
func (*ExtraParams) CheckSkill ¶
func (e *ExtraParams) CheckSkill(skill string) bool
func (*ExtraParams) Destroy ¶
func (e *ExtraParams) Destroy()
func (*ExtraParams) DoHttpFilter ¶ added in v0.8.0
func (e *ExtraParams) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) error
func (*ExtraParams) Start ¶
func (e *ExtraParams) Start() error
func (*ExtraParams) Stop ¶
func (e *ExtraParams) Stop() error
Click to show internal directories.
Click to hide internal directories.