kafkautil

package
v0.0.0-...-ffdedf7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriter

func NewWriter(cfg Config) *kafka.Writer

NewWriter creates a new kafka.Writer. It is the caller's responsibility to close the writer when done.

Types

type Config

type Config struct {
	Brokers []string `env:"BROKERS,required" envSeparator:","` // required
}

Config holds Kafka configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳