routers

package
v1.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 51 Imported by: 176

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExploreCode added in v1.5.0

func ExploreCode(ctx *context.Context)

ExploreCode render explore code page

func ExploreOrganizations

func ExploreOrganizations(ctx *context.Context)

ExploreOrganizations render explore organizations page

func ExploreRepos

func ExploreRepos(ctx *context.Context)

ExploreRepos render explore repositories page

func ExploreUsers

func ExploreUsers(ctx *context.Context)

ExploreUsers render explore users page

func GlobalInit

func GlobalInit(ctx context.Context)

GlobalInit is for global configuration reload-able.

func Home

func Home(ctx *context.Context)

Home render home page

func InitLocales added in v1.12.0

func InitLocales()

InitLocales loads the locales

func Install

func Install(ctx *context.Context)

Install render installation page

func InstallInit

func InstallInit(ctx *context.Context)

InstallInit prepare for rendering installation page

func InstallPost

func InstallPost(ctx *context.Context, form auth.InstallForm)

InstallPost response for submit install items

func Metrics added in v1.7.0

func Metrics(ctx *context.Context)

Metrics validate auth token and render prometheus metrics

func NewServices

func NewServices()

NewServices init new services

func NotFound

func NotFound(ctx *context.Context)

NotFound render 404 page

func RenderRepoSearch

func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)

RenderRepoSearch render repositories search page

func RenderUserSearch

func RenderUserSearch(ctx *context.Context, opts *models.SearchUserOptions, tplName base.TplName)

RenderUserSearch render user search page

func SwaggerV1Json added in v1.6.0

func SwaggerV1Json(ctx *context.Context)

SwaggerV1Json render swagger v1 json

Types

type RepoSearchOptions

type RepoSearchOptions struct {
	OwnerID    int64
	Private    bool
	Restricted bool
	PageSize   int
	TplName    base.TplName
}

RepoSearchOptions when calling search repositories

Directories

Path Synopsis
api
v1
Package v1 Gitea API.
Package v1 Gitea API.
Package private includes all internal routes.
Package private includes all internal routes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL