Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLQMessage ¶
type KafkaClient ¶
type KafkaClient struct { Consumer *kafka.Consumer Producer *kafka.Producer TopicDLQ string LogFunction func(string) ErrorLogFunction func(string) // contains filtered or unexported fields }
func NewClient ¶
func NewClient(c *KafkaConfig, logFunction func(string), errorFunction func(string)) (*KafkaClient, error)
func (*KafkaClient) Consume ¶
func (k *KafkaClient) Consume(channels map[string]chan []byte)
func (*KafkaClient) Disconnect ¶
func (k *KafkaClient) Disconnect()
func (*KafkaClient) Produce ¶
func (k *KafkaClient) Produce(topic string, message []byte)
Click to show internal directories.
Click to hide internal directories.