kafkaconsumer

package
v0.0.0-...-2051c54 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BootstrapServerEnvVar = "BOOTSTRAP_SERVERS"
	TopicEnvVar           = "TOPIC"
	GroupIDEnvVar         = "GROUP_ID"
	MessageCountEnvVar    = "MESSAGE_COUNT"
)

environment variables declaration

View Source
const (
	BootstrapServersDefault = "localhost:9092"
	TopicDefault            = "my-topic"
	GroupIDDefault          = "my-group"
	MessageCountDefault     = 10
)

default values for environment variables

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerConfig

type ConsumerConfig struct {
	BootstrapServers string
	Topic            string
	GroupID          string
	MessageCount     int64
}

ConsumerConfig defines the producer configuration

func NewConsumerConfig

func NewConsumerConfig() *ConsumerConfig

Jump to

Keyboard shortcuts

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