debug

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EnablePprof = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

func NewController

func NewController() *Controller

func (*Controller) ExpVar

func (c *Controller) ExpVar() gin.HandlerFunc

ExpVar exposes public expvar variables via HTTP at /debug/vars.

func (*Controller) MetricsPrometheus

func (c *Controller) MetricsPrometheus() gin.HandlerFunc

MetricsPrometheus Prometheus Metrics

func (*Controller) PProf

func (c *Controller) PProf() gin.HandlerFunc

PProf serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool.

func (*Controller) SetRoutes

func (c *Controller) SetRoutes(ginRouter gin.IRouter, grpcRouter *grpc.Gateway)

SetRoutes registers this handler's routes.

func (*Controller) Version

func (c *Controller) Version() gin.HandlerFunc

Version version

Jump to

Keyboard shortcuts

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