httpoutput

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册file_output驱动工厂

Types

type Config

type Config struct {
	Config *HttpConf `json:"config" yaml:"config"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Check

func (d *Driver) Check(v interface{}) (*HttpConf, error)

func (*Driver) ConfigType

func (d *Driver) ConfigType() reflect.Type

func (*Driver) Create

func (d *Driver) Create(id, name string, v interface{}, workers map[eosc.RequireId]interface{}) (eosc.IWorker, error)

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

type HttpConf

type HttpConf struct {
	Method    string               `json:"method" yaml:"method"`
	Url       string               `json:"url" yaml:"url"`
	Headers   map[string]string    `json:"headers" yaml:"headers"`
	Type      string               `json:"type" yaml:"type"`
	Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter"`
}

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) Output

func (h *HttpOutput) Output(entry eosc.IEntry) error

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

Jump to

Keyboard shortcuts

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