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: 13 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) SendAsync

func (p *Producer) SendAsync(msg *transport.Message)

SendAsync sends a message to the sync service asynchronously.

func (*Producer) Start

func (p *Producer) Start()

Start starts the kafka.

func (*Producer) Stop

func (p *Producer) Stop()

Stop stops the producer.

func (*Producer) Subscribe

func (p *Producer) Subscribe(messageID string, callbacks map[transport.EventType]transport.EventCallback)

Subscribe adds a callback to be delegated when a given event occurs for a message with the given ID.

func (*Producer) SupportsDeltaBundles

func (p *Producer) SupportsDeltaBundles() bool

SupportsDeltaBundles returns true. kafka does support delta bundles.

Jump to

Keyboard shortcuts

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