kafkadriver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config.GetConfig().Events.Kafka
View Source
var Driver = new(Kafka)
View Source
var Tracer = otel.Tracer("pkg/kafkadriver")

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	Conn       sarama.SyncProducer
	AuditTopic string
}

func GetDriver

func GetDriver() *Kafka

func (*Kafka) NewClient

func (k *Kafka) NewClient() *Kafka

Setup Initialize Kafka client

func (*Kafka) WriteMessage

func (k *Kafka) WriteMessage(data interface{}, key string) error

Jump to

Keyboard shortcuts

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