producer

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducerOpts

type KafkaProducerOpts struct {
	Brokers    string
	Topic      string
	MaxRetry   int
	SASLConfig *KafkaSASLOpts
}

type KafkaSASLOpts added in v0.2.8

type KafkaSASLOpts struct {
	Username string
	Password string
}

type Producer

type Producer interface {
	Produce(ctx context.Context, payload interface{}) (err error)
	Close()
}

func NewKafkaProducer

func NewKafkaProducer(opts *KafkaProducerOpts) Producer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳