producer

package
v0.0.0-...-2bb46a1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProducer

type IProducer interface {
	SendMessage(message string) (partition int32, offset int64, err error)
	Close() error
}

type Producer

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

func New

func New(topic string, brokers []string, maxRetry int) (*Producer, error)

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) SendMessage

func (p *Producer) SendMessage(message string) (partition int32, offset int64, err error)

Jump to

Keyboard shortcuts

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