kafka

package
v0.0.0-...-d3f719c Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducerImpl

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

func NewKafkaProducer

func NewKafkaProducer(ctx context.Context, brokers []string, topic string, log Log) *KafkaProducerImpl

func (*KafkaProducerImpl) SendMessage

func (kp *KafkaProducerImpl) SendMessage(ctx context.Context, topic string, message []byte) error

type Log

type Log interface {
	Info(msg string, keysAndValues ...interface{})
	Error(msg string, err error, keysAndValues ...interface{})
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳