kafka

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecurityOptions

func SecurityOptions(protocol string, sslConf *config.KafkaSSL, saslConf *config.KafkaSASL) ([]kgo.Opt, error)

SecurityOptions translates the security_protocol / ssl / sasl config blocks into franz-go client options. The config keys mirror librdkafka's, which is what the Python engine configures.

Types

type Option

type Option func(*Source)

func WithChannelBuffer

func WithChannelBuffer(size int) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithReadTimeout

func WithReadTimeout(timeout time.Duration) Option

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(client *kgo.Client, opts ...Option) (*Source, error)

func (*Source) Close

func (k *Source) Close() error

func (*Source) Commit

func (k *Source) Commit() error

func (*Source) Start

func (k *Source) Start() error

func (*Source) Stream

func (k *Source) Stream() <-chan []core.Message

Jump to

Keyboard shortcuts

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