config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Unlicense Imports: 7 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 {
	Log struct {
		Level string `toml:"level"`
	} `toml:"log"`
	Secure Secure `toml:"secure"`
	Kafka  Kafka  `toml:"kafka"`
}

func LoadConfig

func LoadConfig(args ...*interface{}) (*Config, error)

type Kafka

type Kafka struct {
	Connection             string              `toml:"conn"`
	Producer               producer.Producer   `toml:"producer"`
	Consumers              []consumer.Consumer `toml:"consumers"`
	Group                  string              `toml:"grp"`
	AllowAutoTopicCreation bool                `toml:"auto_create_topic"`
}

type Secure added in v0.1.7

type Secure struct {
	Enable    bool   `toml:"enable"`
	ApiKey    string `toml:"api_key"`
	ApiSecret string `toml:"api_secret"`
	CertFile  string `toml:"cert_file"`
	KeyFile   string `toml:"key_file"`
}

Jump to

Keyboard shortcuts

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