# 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.
NewPagination creates a new instance of the Pagination struct.
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.
RetrieveTemplateRepo retrieves template repository used to generate this 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.
APIInvalidTopicsError is error format response to invalid topics swagger:response invalidTopicsError.
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.
CanCommitToBranchResults represents the results of CanCommitToBranch.
Context represents context of a request.
Organization contains organization context.
Pagination provides a pagination via Paginater and additional configurations for the link params used in rendering.
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.