Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfoConfiguration ¶
type AppInfoConfiguration struct {
AppId uint `mapstructure:"app_id"`
}
type Configuration ¶
type Configuration struct { JWT JWTConfiguration Server ServerConfiguration DB DatabaseConfiguration `mapstructure:"database"` Redis RedisConfiguration `mapstructure:"redis"` DumpRepResp bool `mapstructure:"dump_request_response"` DebugSQL bool `mapstructure:"debug_sql"` NewRelicLicense string `mapstructure:"new_relic_license"` VerifySign string `mapstructure:"verify_sign"` Submail SubmailConfiguration `mapstructure:"submail"` WXPay WXPayConfiguration `mapstructure:"wxpay"` AppInfo AppInfoConfiguration `mapstructure:"appinfo"` }
func Init ¶
func Init() *Configuration
Init - Initialization config options. Read the config file from the current directory and marshal into the conf config struct.
type DatabaseConfiguration ¶
type JWTConfiguration ¶
type RedisConfiguration ¶
type ServerConfiguration ¶
type SubmailConfiguration ¶
type WXPayConfiguration ¶
Click to show internal directories.
Click to hide internal directories.