Documentation ¶
Index ¶
- Constants
- func ExpHandler(ctx *gin.Context)
- func GoVersion() interface{}
- func PProfRegister(r *gin.Engine, prefixOptions ...string)
- func PrometheusHandler(ctx *gin.Context, name string)
- func RouteRegister(rg *gin.RouterGroup, prefixOptions ...string)
- func StatsHandler(ctx *gin.Context)
- func SwagHandler(ctx *gin.Context)
- func WithExpVar() option.App
- func WithHealth() option.App
- func WithNoRoute() option.App
- func WithPProf() option.App
- func WithPing() option.App
- func WithPrometheus() option.App
- func WithRootPath() option.App
- func WithStats(acts gin.Accounts) option.App
- func WithSwagger() option.App
Constants ¶
View Source
const (
// DefaultPrefix url prefix of pprof
DefaultPrefix = "/debug/pprof"
)
Variables ¶
This section is empty.
Functions ¶
func PProfRegister ¶
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 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 SwagHandler ¶
func WithExpVar ¶
func WithHealth ¶
func WithNoRoute ¶
func WithPrometheus ¶
func WithRootPath ¶
func WithSwagger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.