messaging

package
v0.0.0-...-cf36c3e Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyStopped = fmt.Errorf("producer already stopped")

Functions

This section is empty.

Types

type KafkaProducer

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

func NewKafkaProducer

func NewKafkaProducer(bootstrapServers, topic,
	clientID, acks string) (*KafkaProducer, error)

func (*KafkaProducer) Produce

func (kp *KafkaProducer) Produce(payload []byte) error

func (*KafkaProducer) Stop

func (kp *KafkaProducer) Stop()

Jump to

Keyboard shortcuts

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