producer

package
v0.0.0-...-3d9e7e0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSeedBrokers

func WithSeedBrokers(hosts ...string) func(*Producer)

func WithTopic

func WithTopic(topic string) func(*Producer)

Types

type Producer

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

func NewProducer

func NewProducer(options ...func(*Producer)) (*Producer, error)

func (*Producer) Produce

func (p *Producer) Produce(ctx context.Context, payload []byte) error

func (*Producer) ProduceWithHeaders

func (p *Producer) ProduceWithHeaders(ctx context.Context, payload []byte, headers map[string][]byte) error

Jump to

Keyboard shortcuts

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