routes

package
v1.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 49 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// GzipMinSize represents min size to compress for the body size of response
	GzipMinSize = 1400
)

Variables

This section is empty.

Functions

func InstallRoutes

func InstallRoutes() *web.Route

InstallRoutes registers the install routes

func LoggerHandler

func LoggerHandler(level log.Level) func(next http.Handler) http.Handler

LoggerHandler is a handler that will log the routing to the default gitea log

func NormalRoutes

func NormalRoutes() *web.Route

NormalRoutes represents non install routes

func Recovery

func Recovery() func(next http.Handler) http.Handler

Recovery returns a middleware that recovers from any panics and writes a 500 and a log if so. This error will be created with the gitea 500 page.

func RegisterRoutes

func RegisterRoutes(m *web.Route)

RegisterRoutes register routes

func WebRoutes

func WebRoutes() *web.Route

WebRoutes returns all web routes

Types

This section is empty.

Jump to

Keyboard shortcuts

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