routes

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(app *gin.Engine)

func AuthMiddleware

func AuthMiddleware(permission string) func(c *gin.Context)

func ESMiddleware

func ESMiddleware(c *gin.Context)

func HTTPCacheForUI

func HTTPCacheForUI(app *gin.Engine)

func IndexAliasMiddleware

func IndexAliasMiddleware(c *gin.Context)

func SetPProf

func SetPProf(app *gin.Engine)

func SetPrometheus

func SetPrometheus(app *gin.Engine)

SetPrometheus sets up prometheus metrics for gin

func SetRoutes

func SetRoutes(r *gin.Engine)

SetRoutes sets up all gin HTTP API endpoints that can be called by front end

func Setup

func Setup(app *gin.Engine)

Types

This section is empty.

Jump to

Keyboard shortcuts

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