Documentation ¶
Index ¶
- func Check(v *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 Handler
- type HttpOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
Types ¶
type Config ¶
type Config struct { Scopes []string `json:"scopes" label:"作用域"` Method string `json:"method" yaml:"method" enum:"GET,POST,PUT" label:"请求方式"` Url string `json:"url" yaml:"url" format:"uri" label:"请求Url"` Headers map[string]string `json:"headers" yaml:"headers" label:"请求头部"` Type string `json:"type" yaml:"type" enum:"json,line" label:"输出格式"` Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter" label:"格式化配置"` }
type Handler ¶ added in v0.8.0
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶ added in v0.8.0
type HttpOutput ¶
type HttpOutput struct { drivers.WorkerBase // contains filtered or unexported fields }
func (*HttpOutput) CheckSkill ¶
func (h *HttpOutput) CheckSkill(skill string) bool
func (*HttpOutput) Start ¶
func (h *HttpOutput) Start() error
func (*HttpOutput) Stop ¶
func (h *HttpOutput) Stop() error
Click to show internal directories.
Click to hide internal directories.