producer

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 5 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
}

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