forked from forgejo/forgejo
add cache
This commit is contained in:
parent
e4053f5e98
commit
c7e0d3a499
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue