Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppSetting = &App{}
View Source
var DatabaseSetting = &Database{}
View Source
var RedisSetting = &Redis{}
View Source
var ServerSetting = &Server{}
View Source
var StartTime time.Time
View Source
var TasksSetting = &Tasks{}
Functions ¶
Types ¶
type App ¶
type App struct { JwtSecret string JwtExpireTime time.Duration JwtRefreshTime int64 JwtHeaderKey string JwtHeaderPrefixKey string JwtWsHeaderKey string JwtWhiteLists []string PageSize int MaxPageSize int PrefixUrl string RuntimeRootPath string LogSavePath string LogServerName string LogRequestName string LogFileExt string LogLevel string LogMaxSize int LogMaxBackups int LogMaxAge int LogCompress bool LogConsoleOutput bool LogFileOutput bool AesKey string }
func GetAppSetting ¶
func GetAppSetting() *App
type Database ¶
type Database struct { Type string User string Password string Host string Port string Db string MaxIdleConns int MaxOpenConns int ConnMaxLifetime time.Duration TimeZone string DdFile string }
func GetDatabaseSetting ¶
func GetDatabaseSetting() *Database
type Redis ¶
type Redis struct { Host []string MasterName string Password string MaxIdle int MaxActive int PoolSize int IdleTimeout time.Duration }
func GetRedisSetting ¶
func GetRedisSetting() *Redis
Click to show internal directories.
Click to hide internal directories.