Beispiel #1
0
func SetMongoDbCtx(ctx domain.IContext, r *http.Request, db *MongoDB) {
	ctx.Set(r, MongoDbKey, db)
}
func SetCurrentObjectCtx(ctx domain.IContext, req *http.Request, user *users.User) {
	ctx.Set(req, "TESTCURRENTOBJECT", user)
}
Beispiel #3
0
func SetRendererCtx(ctx domain.IContext, r *http.Request, renderer *Renderer) {
	ctx.Set(r, RendererKey, renderer)
}