Documentation
¶
Overview ¶
Package debug provides debug endpoints and profiling helpers for go-service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = di.Module( di.Constructor(http.NewServeMux), di.Constructor(NewServer), di.Register(statsviz.Register), di.Register(pprof.Register), di.Register(fgprof.Register), di.Register(psutil.Register), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server wraps the debug HTTP service.
func NewServer ¶
func NewServer(params ServerParams) (*Server, error)
NewServer constructs the debug server if enabled; otherwise it returns nil.
func (*Server) GetService ¶ added in v2.26.0
GetService returns the service, if defined.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fgprof provides Fx wiring to expose fgprof profiling over HTTP.
|
Package fgprof provides Fx wiring to expose fgprof profiling over HTTP. |
|
Package http provides debug HTTP endpoints for go-service.
|
Package http provides debug HTTP endpoints for go-service. |
|
Package pprof provides Fx wiring to expose net/http/pprof profiling endpoints.
|
Package pprof provides Fx wiring to expose net/http/pprof profiling endpoints. |
|
Package psutil provides debug endpoints and profiling helpers for go-service.
|
Package psutil provides debug endpoints and profiling helpers for go-service. |
|
Package statsviz provides Fx wiring to expose statsviz diagnostics over HTTP.
|
Package statsviz provides Fx wiring to expose statsviz diagnostics over HTTP. |
Click to show internal directories.
Click to hide internal directories.