Documentation ¶
Index ¶
Constants ¶
View Source
const MongoConfPasswordDev = "123456"
View Source
const MongoConfPasswordOnline = "123456"
View Source
const MongoConfUrlDev = "127.0.0.1:28121"
View Source
const MongoConfUrlOnline = "127.0.0.1:28121"
View Source
const MongoConfUserDev = "root"
View Source
const MongoConfUserOnline = "root"
Variables ¶
View Source
var MongoxErrInsertError = trerror.DefaultTrError("MONGO INSERT ERROR")
View Source
var MongoxErrNoData = trerror.DefaultTrError("NO DATA")
View Source
var MongoxErrNoFound = trerror.DefaultTrError("MONGO NO FOUND")
Functions ¶
func GetContext ¶
Types ¶
type MongoConfig ¶
func GetMongoConf ¶
func GetMongoConf(env string) (conf MongoConfig)
Click to show internal directories.
Click to hide internal directories.