config

package
v0.0.0-...-50808a6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(configPath string)

Types

type AppConfig

type AppConfig struct {
	Environment string
	Id          string
	DNSServer   string
}

func App

func App() *AppConfig

type Config

type Config struct {
	App   AppConfig   `mapstructure:"App"`
	Kafka KafkaConfig `mapstructure:"kafka"`
}

type KafkaConfig

type KafkaConfig struct {
	Brokers        []string
	TopicsConsumer []string
	TopicProducer  string
	TopicError     string
	GroupID        string
	MaxRetry       int
}

func Kafka

func Kafka() *KafkaConfig

Jump to

Keyboard shortcuts

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