producer

package
v0.0.0-...-09966f8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Produce(msg kafka.Message) (partition int32, offset int64, err error)
}

type Producer

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

func New

func New(brokers []string, topic string, tlsConfig *tls.Config, logger *log.Logger) (*Producer, error)

func (*Producer) Produce

func (p *Producer) Produce(msg kafka.Message) (int32, int64, error)

Jump to

Keyboard shortcuts

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