config

package
v0.0.0-...-69564a3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "configs/config.toml"

FileName где лежит.

Variables

This section is empty.

Functions

func GetConverterAddress

func GetConverterAddress() (result string)

func Load

func Load() (err error)

Load from file

Types

type Config

type Config struct {
	Converter ConverterCfg `toml:"converter"`
	Consumer  ConsumerCfg  `toml:"consumer"`
}

func Get

func Get() *Config

type ConsumerCfg

type ConsumerCfg struct {
	Topic   string   `toml:"topic"`
	Group   string   `toml:"group"`
	Brokers []string `toml:"brokers"`
	Verbose bool     `toml:"verbose"`
}

type ConverterCfg

type ConverterCfg struct {
	Host string `toml:"host"`
	Port string `toml:"port"`
}

Jump to

Keyboard shortcuts

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