Versions in this module Expand all Collapse all v0 v0.9.13 Mar 19, 2016 Changes in this version + func APIContexter() macaron.Handler + func Contexter() macaron.Handler + func GitHookService() macaron.Handler + func HandleOrgAssignment(ctx *Context, args ...bool) + func OrgAssignment(args ...bool) macaron.Handler + func RepoAssignment(args ...bool) macaron.Handler + func RepoRef() macaron.Handler + func RequireRepoAdmin() macaron.Handler + func RequireRepoWriter() macaron.Handler + func RetrieveBaseRepo(ctx *Context, repo *models.Repository) + func Toggle(options *ToggleOptions) macaron.Handler + type APIContext struct + func (ctx *APIContext) Error(status int, title string, obj interface{}) + func (ctx *APIContext) SetLinkHeader(total, pageSize int) + type Context struct + Cache cache.Cache + Flash *session.Flash + IsBasicAuth bool + IsSigned bool + Org *Organization + Repo *Repository + Session session.Store + User *models.User + func (ctx *Context) GetErrMsg() string + func (ctx *Context) HTML(status int, name base.TplName) + func (ctx *Context) Handle(status int, title string, err error) + func (ctx *Context) HandleText(status int, title string) + func (ctx *Context) HasApiError() bool + func (ctx *Context) HasError() bool + func (ctx *Context) HasValue(name string) bool + func (ctx *Context) RenderWithErr(msg string, tpl base.TplName, form interface{}) + func (ctx *Context) ServeContent(name string, r io.ReadSeeker, params ...interface{}) + type Organization struct + IsMember bool + IsOwner bool + IsTeamAdmin bool + IsTeamMember bool + OrgLink string + Organization *models.User + Team *models.Team + type PullRequest struct + Allowed bool + BaseRepo *models.Repository + HeadInfo string + SameRepo bool + type Repository struct + AccessMode models.AccessMode + BranchName string + CloneLink models.CloneLink + Commit *git.Commit + CommitID string + CommitsCount int64 + GitRepo *git.Repository + IsViewBranch bool + IsViewCommit bool + IsViewTag bool + IsWatching bool + Mirror *models.Mirror + Owner *models.User + PullRequest *PullRequest + RepoLink string + Repository *models.Repository + Tag *git.Tag + TagName string + TreeName string + func (r *Repository) HasAccess() bool + func (r *Repository) IsAdmin() bool + func (r *Repository) IsOwner() bool + func (r *Repository) IsWriter() bool + type ToggleOptions struct + AdminRequired bool + DisableCSRF bool + SignInRequired bool + SignOutRequired bool