kafka

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type KafkaProducer added in v1.0.2

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

func NewProducer

func NewProducer(destConfigJSON interface{}, o common.Opts) (*KafkaProducer, error)

NewProducer creates a producer based on destination config

func NewProducerForAzureEventHubs

func NewProducerForAzureEventHubs(destinationConfig interface{}, o common.Opts) (*KafkaProducer, error)

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

func NewProducerForConfluentCloud

func NewProducerForConfluentCloud(destinationConfig interface{}, o common.Opts) (*KafkaProducer, error)

NewProducerForConfluentCloud creates a producer for Confluent cloud based on destination config

func (*KafkaProducer) Close added in v1.0.2

func (producer *KafkaProducer) Close() error

Close closes a given producer

func (*KafkaProducer) Produce added in v1.0.2

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

Produce creates a producer and send data to Kafka.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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