pubsub

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 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 {
	Kafka Kafka `mapstructure:"kafka"`
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig returns a new Config instance.

type Kafka

type Kafka struct {
	BrokerUrls             []string   `mapstructure:"broker_urls"`
	ClientId               string     `mapstructure:"client_id"`
	Cert                   string     `mapstructure:"cert_pem"`
	CertKey                string     `mapstructure:"cert_pem_key"`
	SecurityProtocol       string     `mapstructure:"security_protocol"`
	Publisher              Publisher  `mapstructure:"publisher"`
	Subscriber             Subscriber `mapstructure:"subscriber"`
	SSLVerificationEnabled bool       `mapstructure:"ssl_verification_enabled"`
}

type Publisher

type Publisher struct {
	MaxAttempts  int           `mapstructure:"max_attempts"`
	WriteTimeout time.Duration `mapstructure:"write_timeout"`
	Topic        string        `mapstructure:"topic"`
	Enabled      bool          `mapstructure:"enabled"`
}

type Subscriber

type Subscriber struct {
	Topic   string `mapstructure:"topic"`
	GroupId string `mapstructure:"group_id"`
	Enabled bool   `mapstructure:"enabled"`
}

Jump to

Keyboard shortcuts

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