Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { *macaron.Context Flash *session.Flash Session session.Store Client *github.Client GiteaClient *gitea.Client User *User //GitHub user GiteaUser *User Link string // current request URL }
Context represents context of a request.
func (*Context) GetCurrentJob ¶
func (ctx *Context) GetCurrentJob() *migrations.Job
GetCurrentJob returns the current job of the user Bug(JonasFranzDEV): prevents scalability (FIXME)
func (*Context) SetCurrentJob ¶
func (ctx *Context) SetCurrentJob(job *migrations.Job)
SetCurrentJob sets the current job of the user Bug(JonasFranzDEV): prevents scalability (FIXME)
Click to show internal directories.
Click to hide internal directories.