Documentation
¶
Index ¶
Constants ¶
View Source
const Development = false
View Source
const RedisKeyPrefix = "chii:" + Version + ":"
RedisKeyPrefix is redis key prefix for all app keys Put version in cache key to avoid model changes.
View Source
const Version = "v0.22.4"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Debug map[string]bool
RedisOptions *redis.Options
MySQLHost string
MySQLPort string
MySQLUserName string
MySQLPassword string
MySQLDatabase string
HCaptchaSecretKey string
FrontendDomain string // new frontend web page domain, like next.bgm.tv
HTTPHost string
HTTPPort int
MySQLMaxConn int
}
func NewAppConfig ¶
func NewAppConfig() AppConfig
Click to show internal directories.
Click to hide internal directories.