producer

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 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 InitProducer

func InitProducer(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