Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModeDev = "dev" ModeProd = "prod" ProvidorFile = "file" ProvidorStdOut = "stdout" RotateByDay = "day" RotateBySize = "size" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Name string
Mode string
Port int
Sess SessionConfig
Log LogConfig
Mysql MysqlConfig
Redis RedisInstance
}
type MysqlConfig ¶
type MysqlConfig struct {
Instances []MysqlInstance
Ping bool
}
type MysqlInstance ¶
type MysqlInstance struct {
Name string `json:"name"`
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Pwd string `json:"password"`
Db string `json:"db"`
ReadOnly bool `json:"read_only"`
}
func (MysqlInstance) String ¶
func (inst MysqlInstance) String() string
type RedisInstance ¶
type RedisInstance struct {
Name string `json:"name"`
Host string `json:"host"`
Pwd string `json:"password"`
Port int `json:"port"`
Db int `json:"database"`
Ping bool `json:"ping"`
}
func (RedisInstance) Address ¶
func (inst RedisInstance) Address() string
type SessionConfig ¶
Click to show internal directories.
Click to hide internal directories.