aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-21 21:06:47 +0800
committerslene <vslene@gmail.com>2014-03-21 21:06:47 +0800
commitc7e0d3a499941a4cbd7814e30308c8f3c6e45543 (patch)
tree03fd6c9bd578be811a5400de36cc1b55ce39b50e /modules/middleware
parente4053f5e982f627d983a08bf3fe6bb2b20b904b5 (diff)
downloadgitea-c7e0d3a499941a4cbd7814e30308c8f3c6e45543.tar.gz
gitea-c7e0d3a499941a4cbd7814e30308c8f3c6e45543.zip
add cache
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/context.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index cb3cbabca6..da051918b1 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -12,6 +12,8 @@ import (
"github.com/codegangsta/martini"
"github.com/martini-contrib/sessions"
+ "github.com/gogits/cache"
+
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/log"
@@ -25,6 +27,7 @@ type Context struct {
Req *http.Request
Res http.ResponseWriter
Session sessions.Session
+ Cache cache.Cache
User *models.User
IsSigned bool