Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Conf app global config Conf = &Config{} )
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Name string Version string Mode string PprofPort string URL string JwtSecret string JwtTimeout int SSL bool CtxDefaultTimeout time.Duration CSRF bool Debug bool }
AppConfig app config
type Config ¶
type Config struct { // common App AppConfig Http ServerConfig Grpc ServerConfig Web WebConfig Cookie CookieConfig QiNiu QiNiuConfig // component config Logger log.Config MySQL orm.Config Redis redis.Config Email email.Config Trace trace.Config MongoDB mongodb.Config }
Config global config include common and biz config
type CookieConfig ¶ added in v1.3.0
type CookieConfig struct { Name string MaxAge int Secure bool HttpOnly bool Domain string Secret string }
CookieConfig cookie config
type QiNiuConfig ¶ added in v1.3.0
type QiNiuConfig struct { AccessKey string SecretKey string CdnURL string SignatureID string TemplateID string }
QiNiuConfig qiniu config
type ServerConfig ¶ added in v1.3.1
ServerConfig server config
Click to show internal directories.
Click to hide internal directories.