Documentation
¶
Index ¶
- Variables
- 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 ContentResize
- type Driver
- type Filter
- type Output
- type Producer
- type ProducerConfig
- type SaslConfig
- type XDGSCRAMClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SHA256 scram.HashGeneratorFcn = sha256.New SHA512 scram.HashGeneratorFcn = sha512.New )
Functions ¶
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:"请求地址"`
Timeout int `json:"timeout" yaml:"timeout" label:"超时时间"`
Version string `` /* 468-byte string literal not displayed */
PartitionType string `json:"partition_type" yaml:"partition_type" enum:"robin,hash,manual,random"`
Partition int32 `json:"partition" yaml:"partition" switch:"partition_type==='manual'"`
PartitionKey string `json:"partition_key" yaml:"partition_key" switch:"partition_type==='hash'"`
Type string `json:"type" yaml:"type" enum:"json,line" label:"输出格式"`
ContentResize []ContentResize `json:"content_resize" yaml:"content_resize" label:"内容截断配置" switch:"type===json"`
EnableSASL bool `json:"enable_sasl" yaml:"enable_sasl" label:"是否启用SASL"`
SaslConfig *SaslConfig `json:"sasl" yaml:"sasl"`
Filters []*Filter `json:"filters" yaml:"conditions" label:"过滤条件"`
Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter" label:"格式化配置"`
}
type ContentResize ¶ added in v0.15.1
type Output ¶
type Output struct {
drivers.WorkerBase
// contains filtered or unexported fields
}
func (*Output) CheckSkill ¶
type Producer ¶ added in v0.8.0
type Producer interface {
// contains filtered or unexported methods
}
type ProducerConfig ¶
type ProducerConfig struct {
Scopes []string `json:"scopes" yaml:"scopes"`
Address []string `json:"address" yaml:"address"`
Topic string `json:"topic" yaml:"topic"`
Partition int32 `json:"partition" yaml:"partition"`
PartitionKey string `json:"partition_key" yaml:"partition_key"`
PartitionType string `json:"partition_type" yaml:"partition_type"`
Conf *sarama.Config `json:"conf" yaml:"conf"`
Type string `json:"type" yaml:"type"`
ContentResize []ContentResize `json:"content_resize" yaml:"content_resize"`
Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter"`
Filters []*Filter `json:"filters" yaml:"conditions" label:"过滤条件"`
}
type SaslConfig ¶ added in v0.22.3
type XDGSCRAMClient ¶ added in v0.22.3
type XDGSCRAMClient struct {
*scram.Client
*scram.ClientConversation
scram.HashGeneratorFcn
}
func (*XDGSCRAMClient) Begin ¶ added in v0.22.3
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
func (*XDGSCRAMClient) Done ¶ added in v0.22.3
func (x *XDGSCRAMClient) Done() bool
Click to show internal directories.
Click to hide internal directories.