package
1.9.0-dev
Repository: https://github.com/vlorc/gitea.git
Documentation: pkg.go.dev

# Functions

APIContexter returns apicontext as macaron middleware.
ComposeGoGetImport returns go-get-import meta content.
Contexter initializes a classic context for a request.
EarlyResponseForGoGetMeta responses appropriate go-get meta with status 200 if user does not have actual access to the requested repository, or the owner or repository does not exist at all.
GitHookService checks if repository Git hooks service has been enabled.
HandleOrgAssignment handles organization assignment.
OrgAssignment returns a macaron middleware to handle organization assignment.
Recovery returns a middleware that recovers from any panics and writes a 500 and a log if so.
RedirectToRepo redirect to a differently-named repository.
ReferencesGitRepo injects the GitRepo into the Context.
RepoAssignment returns a macaron to handle repository assignment.
RepoIDAssignment returns a macaron handler which assigns the repo to the context.
RepoMustNotBeArchived checks if a repo is archived.
RepoRef handles repository reference names when the ref name is not explicitly given.
RepoRefByType handles repository reference name for a specific type of repository reference.
RequireRepoAdmin returns a macaron middleware for requiring repository admin permission.
RequireRepoReader returns a macaron middleware for requiring repository read to the specify unitType.
RequireRepoReaderOr returns a macaron middleware for requiring repository write to one of the unit permission.
RequireRepoWriter returns a macaron middleware for requiring repository write to the specify unitType.
RequireRepoWriterOr returns a macaron middleware for requiring repository write to one of the unit permission.
RetrieveBaseRepo retrieves base repository.
Toggle returns toggle options as middleware.
UnitTypes returns a macaron middleware to set unit types to context variables.

# Constants

RepoRefAny is for usage where educated guess is needed but redirect can not be made.
RepoRefBlob blob.
RepoRefBranch branch.
RepoRefCommit commit.
RepoRefLegacy unknown type, make educated guess and redirect.
RepoRefTag tag.

# Structs

APIContext is a specific macaron context for API service.
APIEmpty is an empty response swagger:response empty.
APIError is error format response swagger:response error.
APIForbiddenError is a forbidden error response swagger:response forbidden.
APINotFound is a not found empty response swagger:response notFound.
APIOrganization contains organization and team.
APIRedirect is a redirect response swagger:response redirect.
APIValidationError is error format response related to input validation swagger:response validationError.
Context represents context of a request.
Organization contains organization context.
PullRequest contains informations to make a pull request.
Repository contains information to operate a repository.
ToggleOptions contains required or check options.

# Type aliases

RepoRefType type of repo reference.