Documentation ¶
Index ¶
- func ExploreCode(ctx *context.Context)
- func ExploreOrganizations(ctx *context.Context)
- func ExploreRepos(ctx *context.Context)
- func ExploreUsers(ctx *context.Context)
- func GlobalInit(ctx context.Context)
- func Home(ctx *context.Context)
- func Install(ctx *context.Context)
- func InstallInit(next http.Handler) http.Handler
- func InstallPost(ctx *context.Context)
- func Metrics(resp http.ResponseWriter, req *http.Request)
- func NewServices()
- func NotFound(ctx *context.Context)
- func PostInstallInit(ctx context.Context)
- func PreInstallInit(ctx context.Context) bool
- func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)
- func RenderUserSearch(ctx *context.Context, opts *models.SearchUserOptions, tplName base.TplName)
- func SwaggerV1Json(ctx *context.Context)
- type RepoSearchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExploreCode ¶ added in v1.5.0
ExploreCode render explore code page
func ExploreOrganizations ¶
ExploreOrganizations render explore organizations page
func ExploreRepos ¶
ExploreRepos render explore repositories page
func GlobalInit ¶
GlobalInit is for global configuration reload-able.
func InstallInit ¶
InstallInit prepare for rendering installation page
func InstallPost ¶
InstallPost response for submit install items
func Metrics ¶ added in v1.7.0
func Metrics(resp http.ResponseWriter, req *http.Request)
Metrics validate auth token and render prometheus metrics
func PostInstallInit ¶ added in v1.14.0
PostInstallInit rereads the settings and starts up the database
func PreInstallInit ¶ added in v1.14.0
PreInstallInit preloads the configuration to check if we need to run install
func RenderRepoSearch ¶
func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)
RenderRepoSearch render repositories search page
func RenderUserSearch ¶
RenderUserSearch render user search page
func SwaggerV1Json ¶ added in v1.6.0
SwaggerV1Json render swagger v1 json
Types ¶
Click to show internal directories.
Click to hide internal directories.