Documentation ¶
Index ¶
- func Register(register eosc.IExtenderDriverRegister)
- type Config
- type Driver
- type Factory
- type HttpOutput
- func (h *HttpOutput) CheckSkill(skill string) bool
- func (h *HttpOutput) Id() string
- func (h *HttpOutput) Output(entry eosc.IEntry) error
- func (h *HttpOutput) Reset(conf interface{}, workers map[eosc.RequireId]interface{}) (err error)
- func (h *HttpOutput) Start() error
- func (h *HttpOutput) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { 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 Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) ConfigType ¶
type Factory ¶
type Factory struct { }
func NewFactory ¶
func NewFactory() *Factory
type HttpOutput ¶
type HttpOutput struct { *Driver // contains filtered or unexported fields }
func (*HttpOutput) CheckSkill ¶
func (h *HttpOutput) CheckSkill(skill string) bool
func (*HttpOutput) Id ¶
func (h *HttpOutput) Id() string
func (*HttpOutput) Reset ¶
func (h *HttpOutput) Reset(conf interface{}, workers map[eosc.RequireId]interface{}) (err error)
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.