Discover Packages
github.com/dennis-tra/optimistic-provide
pkg
config
package
Version:
v0.0.0-...-cc45bd3
Opens a new window with list of versions in this module.
Published: Aug 3, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type App struct {
Instance string `yaml:"-"`
Version string `yaml:"version"`
LogLevel string `yaml:"log_level"`
}
App -.
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
PProf `yaml:"pprof"`
DB `yaml:"db"`
}
Config -.
NewConfig returns app config.
type DB struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Name string `yaml:"name"`
User string `yaml:"user"`
Password string `yaml:"password"`
SSLMode string `yaml:"ssl_mode"`
}
DB -.
type HTTP struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
}
HTTP -.
type PProf struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
}
PProf -.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.