kafka

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ProducerManager added in v1.2.0

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

func NewProducer

func NewProducer(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)

NewProducer creates a producer based on destination config

func NewProducerForAzureEventHubs

func NewProducerForAzureEventHubs(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)

NewProducerForAzureEventHubs creates a producer for Azure event hub based on destination config

func NewProducerForConfluentCloud

func NewProducerForConfluentCloud(destination *backendconfig.DestinationT, o common.Opts) (*ProducerManager, error)

NewProducerForConfluentCloud creates a producer for Confluent cloud based on destination config

func (*ProducerManager) Close added in v1.2.0

func (p *ProducerManager) Close() error

Close closes a given producer

func (*ProducerManager) Produce added in v1.2.0

func (p *ProducerManager) Produce(jsonData json.RawMessage, destConfig interface{}) (int, string, string)

Produce creates a producer and send data to Kafka.

func (*ProducerManager) Publish added in v1.2.0

func (p *ProducerManager) Publish(ctx context.Context, msgs ...client.Message) error

Publish publishes a given message to Kafka

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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