config

package
v0.0.0-...-f9f7c22 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load config from config files or from environment variables

Types

type Config

type Config struct {
	Microservice struct {
		Processor string `yaml:"processor" envconfig:"PROCESSOR_NAME"`
		Service   string `yaml:"service" envconfig:"SERVICE_NAME"`
	} `yaml:"microservice"`
	Logging struct {
		LoggerLevel string `yaml:"level" envconfig:"LOGGER_LEVEL"`
	} `yaml:"logging"`
}
var (
	AppConfig Config
)

Jump to

Keyboard shortcuts

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