kafka

package
v0.0.0-...-d1d2f72 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Brokers []string    `mapstructure:"brokers"`
	TLS     *TLS        `mapstructure:"tls"`
	SASL    *SASL       `mapstructure:"sasl"`
	SSH     *ssh.Config `mapstructure:"ssh_tunnel"`
}

type Kafka

type Kafka struct {
	sarama.Client
}

func New

func New(c *Config) (*Kafka, error)

type SASL

type SASL struct {
	Mechanism string `mapstructure:"mechanism"`
	Username  string `mapstructure:"username"`
	Password  string `mapstructure:"password"`
}

type TLS

type TLS struct {
	Insecure bool   `mapstructure:"insecure"`
	CAFile   string `mapstructure:"cafile"`
}

Jump to

Keyboard shortcuts

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