Versions in this module Expand all Collapse all v1 v1.8.1 May 8, 2019 Changes in this version + func APIContexter() macaron.Handler + func ComposeGoGetImport(owner, repo string) string + func Contexter() macaron.Handler + func EarlyResponseForGoGetMeta(ctx *Context) + func GitHookService() macaron.Handler + func HandleOrgAssignment(ctx *Context, args ...bool) + func OrgAssignment(args ...bool) macaron.Handler + func Recovery() macaron.Handler + func RedirectToRepo(ctx *Context, redirectRepoID int64) + func ReferencesGitRepo() macaron.Handler + func RepoAssignment() macaron.Handler + func RepoIDAssignment() macaron.Handler + func RepoMustNotBeArchived() macaron.Handler + func RepoRef() macaron.Handler + func RepoRefByType(refType RepoRefType) macaron.Handler + func RequireRepoAdmin() macaron.Handler + func RequireRepoReader(unitType models.UnitType) macaron.Handler + func RequireRepoReaderOr(unitTypes ...models.UnitType) macaron.Handler + func RequireRepoWriter(unitType models.UnitType) macaron.Handler + func RequireRepoWriterOr(unitTypes ...models.UnitType) macaron.Handler + func RetrieveBaseRepo(ctx *Context, repo *models.Repository) + func Toggle(options *ToggleOptions) macaron.Handler + func UnitTypes() macaron.Handler + type APIContext struct + Org *APIOrganization + func (ctx *APIContext) CheckForOTP() + func (ctx *APIContext) Error(status int, title string, obj interface{}) + func (ctx *APIContext) RequireCSRF() + func (ctx *APIContext) SetLinkHeader(total, pageSize int) + type APIEmpty struct + type APIError struct + Message string + URL string + type APIForbiddenError struct + type APINotFound struct + type APIOrganization struct + Organization *models.User + Team *models.Team + type APIRedirect struct + type APIValidationError struct + Message string + URL string + type Context struct + Cache cache.Cache + EscapedLink string + Flash *session.Flash + IsBasicAuth bool + IsSigned bool + Link string + 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) 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) NotFound(title string, err error) + func (ctx *Context) NotFoundOrServerError(title string, errck func(error) bool, err error) + func (ctx *Context) RedirectToFirst(location ...string) + func (ctx *Context) RenderWithErr(msg string, tpl base.TplName, form interface{}) + func (ctx *Context) ServeContent(name string, r io.ReadSeeker, params ...interface{}) + func (ctx *Context) ServerError(title string, err error) + 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 RepoRefType int + const RepoRefAny + const RepoRefBlob + const RepoRefBranch + const RepoRefCommit + const RepoRefLegacy + const RepoRefTag + type Repository struct + 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 + TreePath string + func (r *Repository) BranchNameSubURL() string + func (r *Repository) CanCommitToBranch(doer *models.User) (bool, error) + func (r *Repository) CanCreateBranch() bool + func (r *Repository) CanCreateIssueDependencies(user *models.User) bool + func (r *Repository) CanEnableEditor() bool + func (r *Repository) CanUseTimetracker(issue *models.Issue, user *models.User) bool + func (r *Repository) GetCommitsCount() (int64, error) + func (r *Repository) GetEditorconfig() (*editorconfig.Editorconfig, error) + type ToggleOptions struct + AdminRequired bool + DisableCSRF bool + SignInRequired bool + SignOutRequired bool