Discover Packages
github.com/hackerchai/threatbook-ip-web
internal
app
config
package
Version:
v0.0.0-...-36ab9e0
Opens a new window with list of versions in this module.
Published: Nov 10, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CORS struct {
Enable bool `mapstructure:"enable"`
AllowOrigins string `mapstructure:"allow_origins"`
AllowMethods string `mapstructure:"allow_methods"`
}
type CSRF struct {
Enable bool `mapstructure:"enable"`
}
type Common struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
DeployMode string `mapstructure:"deploy_mode"`
Swagger string `mapstructure:"swagger"`
}
type Config struct {
Common Common `mapstructure:"common"`
DevDatabase Database `mapstructure:"dev_database"`
ProdDatabase Database `mapstructure:"prod_database"`
Log Log `mapstructure:"log"`
CORS CORS `mapstructure:"cors"`
Limiter Limiter `mapstructure:"limiter"`
CSRF CSRF `mapstructure:"csrf"`
}
type Database struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
Database string `mapstructure:"database"`
SSLMode string `mapstructure:"ssl_mode"`
}
type Limiter struct {
Enable bool `mapstructure:"enable"`
Max int `mapstructure:"limit_max"`
Duration int `mapstructure:"limit_duration"`
}
type Log struct {
Type string `mapstructure:"type"`
Environment string `mapstructure:"environment"`
Filename string `mapstructure:"filename"`
MaxSize int `mapstructure:"max_size"`
MaxAge int `mapstructure:"max_age"`
MaxBackups int `mapstructure:"max_backups"`
LocalTime bool `mapstructure:"local_time"`
Compress bool `mapstructure:"compress"`
Level string `mapstructure:"level"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.