Documentation ¶
Index ¶
Constants ¶
View Source
const ( DevMode = "Dev" TestMode = "Test" )
Db modes
Variables ¶
View Source
var MongoDBName = "Store"
Functions ¶
func Connection ¶
Connection creates a new database connection based on the configuration and mode
func ReInitDB ¶
func ReInitDB()
ReInitDB re-init the database , it is dangerous function because it wipes out every data
func RedisClient ¶
func RedisClient() *redis.Client
Types ¶
Click to show internal directories.
Click to hide internal directories.