Documentation ¶
Index ¶
- Constants
- func Check(conf *Config, workers map[eosc.RequireId]eosc.IWorker) error
- 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
Constants ¶
View Source
const ( JsonBodyType = "json" FormDataBodyType = "form-data" MultipartFormDataBodyType = "multipart-formdata" )
View Source
const (
Name = "extra_params_v2"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
func Register ¶
func Register(register eosc.IExtenderDriverRegister)
Types ¶
type Config ¶
type Config struct { Params []*ExtraParam `json:"params" label:"参数列表"` RequestBodyType string `json:"request_body_type" enum:"form-data,json,multipart-formdata" label:"请求体类型"` ErrorType string `json:"error_type" enum:"text,json" label:"报错输出格式"` }
type ExtraParam ¶
type ExtraParam struct { Name string `json:"name" label:"参数名"` Type string `json:"type" label:"参数类型" enum:"string,int,float,bool,$datetime,$md5,$timestamp,$concat"` Position string `json:"position" enum:"header,query,body" label:"参数位置"` Value []string `json:"value" label:"参数值列表"` Conflict string `json:"conflict" label:"参数冲突时的处理方式" enum:"origin,convert,error"` }
Click to show internal directories.
Click to hide internal directories.