consumer

package
v0.0.0-...-65b96be Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

Consumer represents a Sarama consumer group consumer

type KafkaInput

type KafkaInput struct {
	sarama.ConsumerGroup
	// contains filtered or unexported fields
}

KafkaInput is used for recieving Kafka messages and transforming them into HTTP payloads.

func NewKafkaInput

func NewKafkaInput() *KafkaInput

NewKafkaInput creates instance of kafka consumer client.

func (*KafkaInput) Cleanup

Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited

func (*KafkaInput) ConsumeClaim

ConsumeClaim and stuff

func (*KafkaInput) Push

func (i *KafkaInput) Push(m *sarama.ConsumerMessage)

Push Messages

func (*KafkaInput) Read

func (i *KafkaInput) Read(data []byte) (int, error)

func (*KafkaInput) Setup

Setup is run at the beginning of a new session, before ConsumeClaim

Jump to

Keyboard shortcuts

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