kafkaconfluent

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrEmptyBroker is returned when the the broker is missing from the Config struct
	ErrEmptyBroker = errors.New("bad config: empty broker")
	//ErrEmptyTopic is returned when the the Topic is missing from the Config struct
	ErrEmptyTopic = errors.New("bad config: empty topic")
	//ErrEmptyUsername is returned when the the Username is missing from the Config struct
	ErrEmptyUsername = errors.New("bad config: empty username")
	//ErrEmptyPassword is returned when the the Password is missing from the Config struct
	ErrEmptyPassword = errors.New("bad config: empty password")
)

Functions

func MustNew

func MustNew(config Config) goduck.Stream

MustNew creates a confluent-kafkam with default configs

func New added in v0.10.0

func New(config Config) (goduck.Stream, error)

New creates a confluent-kafka-go goduck.Stream with default configs

Types

type Config added in v0.2.1

type Config struct {
	Brokers  []string
	GroupID  string
	Username string
	Password string

	// RDKafkaConfig can specify librdkafka configs. If this is variable is set, the
	// other variables (Brokers, GroupID, Username and Password) are ignored
	RDKafkaConfig *kafka.ConfigMap

	Topics []string

	// PoolTimeout is the value passed to the internal consumer.Pool(...)
	// function. Default: 1s
	PoolTimeout time.Duration

	// DisableCommit indicates that offsets should never be commited, even
	// after calling Done()
	DisableCommit bool
}

Config contains the configuration necessary to build the confluent-kafka-go goduck.Stream

Jump to

Keyboard shortcuts

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