kafka

package
v0.0.0-...-d4a31e9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConsumer

func InitConsumer(handler sarama.ConsumerGroupHandler, url, topic string) error

func InitProducer

func InitProducer(url, topic string) (err error)

Types

type Producer

type Producer struct {
	// contains filtered or unexported fields
}
var ProducerClient *Producer

func NewProducer

func NewProducer(url, topic string) (*Producer, error)

func (*Producer) SendMessage

func (p *Producer) SendMessage(c context.Context, key string, msg proto.Message) (int32, int64, error)

Jump to

Keyboard shortcuts

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