Discover Packages
github.com/borntodie-new/todo-list-backup
config
package
Version:
v0.0.0-...-8336b8e
Opens a new window with list of versions in this module.
Published: Mar 25, 2023
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 {
*Server `mapstructure:"server"`
*Mysql `mapstructure:"mysql"`
*Redis `mapstructure:"redis"`
*JWTConfig `mapstructure:"jwt"`
*EmailConfig `mapstructure:"email"`
}
type EmailConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
From string `mapstructure:"from"`
}
type JWTConfig struct {
SigningKey string `mapstructure:"signing_key"`
ExpireTime int `mapstructure:"expire_time"`
RefreshTime int `mapstructure:"refresh_time"`
}
type Mysql struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
Database string `mapstructure:"database"`
}
type Redis struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
Database int `mapstructure:"database"`
}
type Server struct {
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.