kafka

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SaslTypePlain = SaslType("plain")
	SaslTypeScram = SaslType("scram")
)

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	Client  *kafka.Reader
	Brokers []string
	Group   *string
	Topic   *string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
	// SASL
	EnableSASL *bool
	SaslType   *SaslType
	Username   *string
	Password   *string
}

func (*Kafka) Cleanup

func (d *Kafka) Cleanup() error

func (*Kafka) ClearWork

func (d *Kafka) ClearWork() error

func (*Kafka) GetWork

func (d *Kafka) GetWork() (io.Reader, error)

func (*Kafka) HandleFailure

func (d *Kafka) HandleFailure() error

func (*Kafka) Init

func (d *Kafka) Init() error

func (*Kafka) LoadEnv

func (d *Kafka) LoadEnv(prefix string) error

func (*Kafka) LoadFlags

func (d *Kafka) LoadFlags() error

type SaslType

type SaslType string

Jump to

Keyboard shortcuts

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