producer

package
v0.0.0-...-e0b84e1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KAFKA_URL = "127.0.0.1"
	TOPIC     = "my-topic"
)

Variables

This section is empty.

Functions

func NewKafkaWriter

func NewKafkaWriter(kafkaURL, topic string) *kafka.Writer

func Send

func Send(key string, value interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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