Documentation ¶
Index ¶
- type InputKafka
- func (k *InputKafka) Cleanup(sarama.ConsumerGroupSession) error
- func (k *InputKafka) Collect(collector pipeline.Collector) error
- func (k *InputKafka) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (k *InputKafka) Description() string
- func (k *InputKafka) Init(context pipeline.Context) (int, error)
- func (k *InputKafka) Setup(session sarama.ConsumerGroupSession) error
- func (k *InputKafka) Start(collector pipeline.Collector) error
- func (k *InputKafka) StartService(context pipeline.PipelineContext) error
- func (k *InputKafka) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputKafka ¶
type InputKafka struct { ConsumerGroup string ClientID string Topics []string Brokers []string MaxMessageLen int Version string Offset string SASLUsername string SASLPassword string // Assignor Consumer group partition assignment strategy (range, roundrobin, sticky) Assignor string // Decoder the decoder to use, default is "ext_default_decoder" Decoder string Format string FieldsExtend bool DisableUncompress bool // contains filtered or unexported fields }
func (*InputKafka) Cleanup ¶ added in v1.6.0
func (k *InputKafka) Cleanup(sarama.ConsumerGroupSession) error
Cleanup implements ConsumerGroupHandler
func (*InputKafka) ConsumeClaim ¶ added in v1.6.0
func (k *InputKafka) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim implements ConsumerGroupHandler, must start a consumer loop of ConsumerGroupClaim's Messages().
func (*InputKafka) Description ¶
func (k *InputKafka) Description() string
func (*InputKafka) Setup ¶ added in v1.6.0
func (k *InputKafka) Setup(session sarama.ConsumerGroupSession) error
Setup implements ConsumerGroupHandler
func (*InputKafka) StartService ¶ added in v1.6.0
func (k *InputKafka) StartService(context pipeline.PipelineContext) error
func (*InputKafka) Stop ¶
func (k *InputKafka) Stop() error
Click to show internal directories.
Click to hide internal directories.