Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MongoOkShortDB *qmgo.Database MongoLinksColl *qmgo.Collection MongoLinksTraceColl *qmgo.Collection MongoAuthsColl *qmgo.Collection Redis *redis.Client )
View Source
var ( AppSetting *setting.AppSettingS MongoDBSetting *setting.MongoDBSettingS RedisSetting *setting.RedisSettingS Logger *logger.Logger )
Functions ¶
func NewMongoDB ¶
func NewMongoDB(s *setting.MongoDBSettingS) (*qmgo.Client, error)
func SetupLogger ¶
func SetupLogger() error
func SetupMongoDB ¶
func SetupMongoDB() error
func SetupRedis ¶
func SetupRedis() error
func SetupSetting ¶
func SetupSetting() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.