sarama

package
v0.0.0-...-bb7101a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducer

type KafkaProducer struct {
	shSarama.SyncProducer
	sync.RWMutex
}

func NewKafkaProducer

func NewKafkaProducer(opt saramaConf.KafkaOption) (*KafkaProducer, error)

func (*KafkaProducer) Close

func (p *KafkaProducer) Close() error

func (*KafkaProducer) Send

func (p *KafkaProducer) Send(topic, content string) error

func (*KafkaProducer) SendN

func (p *KafkaProducer) SendN(topic string, contents []string) error

Jump to

Keyboard shortcuts

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