Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Mode string `yaml:"mode"` JwtSecret string `yaml:"jwtSecret"` Log logger `yaml:"log"` Orm MysqlConfig `yaml:"orm"` Cache RedisConfig `yaml:"cache"` }
type MysqlConfig ¶
type MysqlConfig struct { User string `yaml:"user"` Password string `yaml:"password"` Host string `yaml:"host"` Port string `yaml:"port"` Database string `yaml:"database"` Net string `yaml:"net"` }
func (*MysqlConfig) Uri ¶
func (cfg *MysqlConfig) Uri() string
type RedisConfig ¶
type RedisConfig struct { User string `yaml:"user"` Password string `yaml:"password"` Host string `yaml:"host"` Port string `yaml:"port"` Database string `yaml:"database"` }
func (*RedisConfig) Uri ¶
func (cfg *RedisConfig) Uri() string
Uri redis :// [[username :] password@] host [:port][/database]
[?[timeout=timeout[d|h|m|s|ms|us|ns]] [&clientName=clientName] [&libraryName=libraryName] [&libraryVersion=libraryVersion] ]
Click to show internal directories.
Click to hide internal directories.