kafka

package
v0.0.0-...-6bcfac2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 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 Interface

type Interface interface {
	Produce(msg Message) (int64, error)
}

type Message

type Message []byte

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 Message) (offset int64, err error)

Jump to

Keyboard shortcuts

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