kafka

package
v0.0.0-...-ff06b4a Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

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

func NewProducer

func NewProducer(cfg *conf.KafkaService) *Producer

func (*Producer) Close

func (p *Producer) Close()

func (*Producer) Publish

func (p *Producer) Publish(topic string, bytes []byte) error

func (*Producer) PublishByKey

func (p *Producer) PublishByKey(topic, key string, bytes []byte) error

func (*Producer) PublishByPartition

func (p *Producer) PublishByPartition(topic string, partition int32, bytes []byte) error

Jump to

Keyboard shortcuts

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