Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int `env:"PORT" default:"8080"`
Debug bool `env:"DEBUG"`
Timeout time.Duration `env:"TIMEOUT" default:"10s"`
DB Database `prefix:"DB_"`
Tags []string `env:"TAGS" sep:","`
Labels map[string]string `env:"LABELS" sep:"," kvsep:":"`
Started time.Time `env:"STARTED" layout:"2006-01-02"`
BaseURL string `env:"BASE_URL" default:"${NATS_URL}/api" expand`
}
func LoadConfig ¶
func MustLoadConfig ¶
func MustLoadConfig() Config
Click to show internal directories.
Click to hide internal directories.