handler

package
v0.0.0-...-525798f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultPrefix url prefix of pprof
	DefaultPrefix = "/debug/pprof"
)

Variables

This section is empty.

Functions

func ExpHandler

func ExpHandler(ctx *gin.Context)

ExpHandler 返回当前运行信息

func GoVersion

func GoVersion() interface{}

当前 Golang 版本

func PProfRegister

func PProfRegister(r *gin.Engine, prefixOptions ...string)

Register the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.

func PrometheusHandler

func PrometheusHandler(ctx *gin.Context, name string)

func RouteRegister

func RouteRegister(rg *gin.RouterGroup, prefixOptions ...string)

RouteRegister the standard HandlerFuncs from the net/http/pprof package with the provided gin.GrouterGroup. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.

func StatsHandler

func StatsHandler(ctx *gin.Context)

func SwagHandler

func SwagHandler(ctx *gin.Context)

func WithExpVar

func WithExpVar() option.App

func WithHealth

func WithHealth() option.App

func WithNoRoute

func WithNoRoute() option.App

func WithPProf

func WithPProf() option.App

func WithPing

func WithPing() option.App

func WithPrometheus

func WithPrometheus() option.App

func WithRootPath

func WithRootPath() option.App

func WithStats

func WithStats(acts gin.Accounts) option.App

func WithSwagger

func WithSwagger() option.App

Types

This section is empty.

Jump to

Keyboard shortcuts

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