You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
796 B

package config
import {{.authImport}}
import
type Config struct {
rest.RestConf
{{.auth}}
{{.jwtTrans}}
Mysql struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Database string `json:"database"`
Charset string `json:"charset"`
}
Redis struct {
Host string `json:"host"`
Port int `json:"port"`
Password string `json:"password"`
Database int `json:"database"`
TkDB int `json:"tkDB"`
CacheDB int `json:"cacheDB"`
CacheExpire int `json:"cacheExpire"`
}
Auth struct {
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
RefreshSecret string `json:"refreshSecret"`
RefreshExpire int64 `json:"refreshExpire"`
}
}