config

package
v0.0.0-...-e0cb63f Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

func ValidateConfig

func ValidateConfig(cfg Config)

Types

type Config

type Config struct {
	Port     string `mapstructure:"PORT" validate:"required"`
	LogLevel string `mapstructure:"LOG_LEVEL" validate:"required"`
}

func ExtractConfig

func ExtractConfig() Config

func (Config) ParseLevel

func (c Config) ParseLevel() (slog.Level, error)

Jump to

Keyboard shortcuts

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