Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Redis RedisConfig `yaml:"redis"`
DB DBConfig `yaml:"db"`
Server ServerConfig `yaml:"server"`
}
Config for App.
type DBConfig ¶
type DBConfig struct {
User string `yaml:"user"`
Password string `yaml:"password"`
Port string `yaml:"port"`
Host string `yaml:"host"`
DBname string `yaml:"dbname"`
}
Config for DB.
type RedisConfig ¶
type RedisConfig struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
Config for Redis.
type ServerConfig ¶
type ServerConfig struct {
Salt string `yaml:"salt"`
JWTKey string `yaml:"jwtkey"`
TokenLifeTime int `yaml:"tokenLifeTime"`
}
Config for Server.
Click to show internal directories.
Click to hide internal directories.