kafconn

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: BSD-3-Clause-Clear Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

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

func NewKafka

func NewKafka(ctx context.Context, tls TLSSetup) (*Kafka, error)

func (*Kafka) CheckPartitions

func (k *Kafka) CheckPartitions() error

func (*Kafka) NewReader

func (k *Kafka) NewReader(config kafka.ReaderConfig) *kafka.Reader

func (*Kafka) NewWriter

func (k *Kafka) NewWriter(topic string) (*kafka.Writer, error)

type TLSSetup

type TLSSetup struct {
	CA   string
	Key  string
	Cert string
}

Jump to

Keyboard shortcuts

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