Documentation
¶
Index ¶
- func AutoSignIn(ctx *Context) (bool, error)
- 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 Context
- func (ctx *Context) APIError(status int, title string, obj interface{})
- 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 RepoContext
- type ToggleOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoSignIn ¶ added in v0.6.5
AutoSignIn reads cookie and try to auto-login.
func GitHookService ¶ added in v0.5.5
GitHookService checks if repository Git hooks service has been enabled.
func HandleOrgAssignment ¶ added in v0.7.22
func HandleOrgAssignment(ctx *Context, args ...