kafka

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 12 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
}

Producer abstracts hub-of-hubs-kafka-transport kafka-producer's generic usage.

func NewProducer

func NewProducer(compressor compressors.Compressor, log logr.Logger) (*Producer, error)

NewProducer returns a new instance of Producer object.

func (*Producer) GetVersion

func (p *Producer) GetVersion(_ string, _ string) string

GetVersion returns an empty string if the object doesn't exist or an error occurred.

func (*Producer) SendAsync

func (p *Producer) SendAsync(id string, msgType string, version string, payload []byte)

SendAsync sends a message to the sync service asynchronously.

func (*Producer) Start

func (p *Producer) Start()

Start starts kafka producer.

func (*Producer) Stop

func (p *Producer) Stop()

Stop stops the producer.

Jump to

Keyboard shortcuts

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