package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Sep 27, 2023
License: AGPL-3.0
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
¶
View Source
const (
LoggingFormatText = "text"
LoggingFormatJson = "json"
)
type Application struct {
Host string `mapstructure:"host"`
Port uint `mapstructure:"port"`
IsBehindProxy bool `mapstructure:"behind_proxy"`
TrustedProxies []string `mapstructure:"trusted_proxies"`
TLS TLS `mapstructure:"tls"`
}
type Config struct {
Application Application `mapstructure:"application"`
Database Database `mapstructure:"database"`
Logging Logging `mapstructure:"logging"`
}
type Database struct {
Host string `mapstructure:"host"`
Port uint `mapstructure:"port"`
Name string `mapstructure:"name"`
Username string `mapstructure:"user"`
Password string `mapstructure:"pass"`
Charset string `mapstructure:"charset"`
}
type Logging struct {
File string `mapstructure:"file"`
Level string `mapstructure:"level"`
Format string `mapstructure:"format"`
}
type TLS struct {
Enabled bool `mapstructure:"enabled"`
CertPath string `mapstructure:"cert_path"`
KeyPath string `mapstructure:"key_path"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.