producer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

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

func New

func New(client sarama.Client) (*Producer, error)

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) SendKeyMessage

func (p *Producer) SendKeyMessage(topic string, key, value []byte, h ...sarama.RecordHeader) error

func (*Producer) SendMessage

func (p *Producer) SendMessage(topic string, value []byte, h ...sarama.RecordHeader) error

Jump to

Keyboard shortcuts

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