kafkasegmentio

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaStream

func NewKafkaStream(config KafkaConfigs) goduck.Stream

func NewKafkaStreamWithCustomConfigs

func NewKafkaStreamWithCustomConfigs(config kafka.ReaderConfig) goduck.Stream

NewKafkaStreamWithCustomConfigs allows creating a kafka connection with all configs from the SegmentIO library

Types

type KafkaConfigs

type KafkaConfigs struct {
	Brokers  []string
	Topic    string
	GroupID  string
	Username string
	Password string

	CommitInterval time.Duration
}

KafkaConfigs contains the configs for kafka connection

Jump to

Keyboard shortcuts

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