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 { App AppConfig Http ServerConfig Grpc ServerConfig Web WebConfig // component config Logger log.Config MySQL orm.Config Trace trace.Config }
type ServerConfig ¶
ServerConfig server config
Click to show internal directories.
Click to hide internal directories.