Documentation ¶
Index ¶
- func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func CreateProducerPool(addrs []string, authSecret string, conf map[string]interface{}) (*producerPool, error)
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Config
- type ContentResize
- type NsqOutput
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProducerPool ¶
func CreateProducerPool(addrs []string, authSecret string, conf map[string]interface{}) (*producerPool, error)
Create
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
Types ¶
type Config ¶
type Config struct { Scopes []string `json:"scopes" label:"作用域"` Topic string `json:"topic" yaml:"topic" label:"topic"` Address []string `json:"address" yaml:"address" label:"请求地址"` AuthSecret string `json:"auth_secret" yaml:"auth_secret" label:"鉴权secret"` ClientConf map[string]interface{} `json:"nsq_conf" yaml:"nsq_conf" skip:""` Type string `json:"type" yaml:"type" enum:"json,line" label:"输出格式"` ContentResize []ContentResize `json:"content_resize" yaml:"content_resize" label:"内容截断配置" switch:"type===json"` Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter" label:"格式化配置"` }
type ContentResize ¶ added in v0.15.1
type NsqOutput ¶
type NsqOutput struct { drivers.WorkerBase // contains filtered or unexported fields }
func (*NsqOutput) CheckSkill ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.