kafka

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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.Writer
	Brokers []string
	Topic   *string
	Key     *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) Init

func (d *Kafka) Init() error

func (*Kafka) LoadEnv

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

func (*Kafka) LoadFlags

func (d *Kafka) LoadFlags() error

func (*Kafka) Push

func (d *Kafka) Push(r io.Reader) error

type SaslType

type SaslType string

Jump to

Keyboard shortcuts

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