config

package
v1.0.2 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
	PathToWatch    string
	ErrorParsePath string
	Workers        int
}

func App

func App() *AppConfig

type Config

type Config struct {
	App   AppConfig
	Kafka KafkaConfig
}

type KafkaConfig

type KafkaConfig struct {
	Brokers        []string
	TopicsConsumer []string
	TopicsProducer []string
	TopicsError    []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