web

package
v1.21.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 61 Imported by: 1

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 Home

func Home(ctx *context.Context)

Home render home page

func HomeSitemap added in v1.17.4

func HomeSitemap(ctx *context.Context)

HomeSitemap renders the main sitemap

func Metrics

func Metrics(resp http.ResponseWriter, req *http.Request)

Metrics validate auth token and render prometheus metrics

func NodeInfoLinks(ctx *context.Context)

NodeInfoLinks returns links to the node info endpoint

func NotFound

func NotFound(ctx *context.Context)

NotFound render 404 page

func Routes

func Routes() *web.Route

Routes returns all web routes

func SwaggerV1Json

func SwaggerV1Json(ctx *context.Context)

SwaggerV1Json render swagger v1 json

func WebfingerQuery added in v1.17.0

func WebfingerQuery(ctx *context.Context)

WebfingerQuery returns information about a resource https://datatracker.ietf.org/doc/html/rfc7565

Types

This section is empty.

Jump to

Keyboard shortcuts

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