package
Version:
v0.0.0-...-a7468fe
Opens a new window with list of versions in this module.
Published: Jan 29, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `yaml:"name" env:"APP_NAME" env-default:"go-template"`
Environment string `yaml:"environment" env:"APP_ENVIRONMENT" env-default:"develop"`
}
type Config struct {
App App `yaml:"app" env-description:"Application settings"`
Log Log `yaml:"log" env-description:"Logging settings"`
Trace Trace `yaml:"trace" env-description:"Tracing settings"`
HTTP HTTP `yaml:"http" env-description:"HTTP server settings"`
}
type HTTP struct {
Port string `yaml:"port" env:"HTTP_PORT" env-default:"8080"`
}
type Log struct {
Level string `yaml:"level" env:"LOG_LEVEL" env-default:"info"`
}
type Trace struct {
Enabled bool `yaml:"enabled" env:"TRACE_ENABLED" env-default:"true"`
URL string `yaml:"url" env:"TRACE_URL"`
Name string `yaml:"name" env:"TRACE_NAME" env-default:"go-template"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.