Discover Packages
github.com/Ki4EH/opz-purple
internal
config
package
Version:
v0.0.0-...-c37e3dc
Opens a new window with list of versions in this module.
Published: Mar 11, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Env string `yaml:"env" env-default:"local"`
HTTPServer `yaml:"http_server"`
Database `yaml:"database"`
}
type Database struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Name string `yaml:"name"`
UserName string `yaml:"username"`
Password string `yaml:"password"`
}
type HTTPServer struct {
Address string `yaml:"address" env-default:"localhost:8080"`
Timeout time .Duration `yaml:"timeout" env-default:"4s"`
IdleTimeout time .Duration `yaml:"idle_timeout" env-default:"60s"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.