producer

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 4 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 {
	KafkaAddr string
	Topic     string
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer(addr, topic string) *Producer

func (*Producer) Close

func (p *Producer) Close()

func (*Producer) ProduceEvent

func (p *Producer) ProduceEvent(messageChan chan kafka.Message)

Jump to

Keyboard shortcuts

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