debug

package
v2.286.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package debug provides debug endpoints and profiling helpers for go-service.

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

This section is empty.

Types

type Config

type Config struct {
	*server.Config `yaml:",inline" json:",inline" toml:",inline"`
}

Config configures the debug server.

func (*Config) IsEnabled added in v2.115.0

func (c *Config) IsEnabled() bool

IsEnabled reports whether debug configuration is present and enabled.

type Server

type Server struct {
	*server.Service
}

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

func (s *Server) GetService() *server.Service

GetService returns the service, if defined.

type ServerParams

type ServerParams struct {
	di.In
	Shutdowner di.Shutdowner
	Mux        *debug.ServeMux
	Config     *Config
	Logger     *logger.Logger
	FS         *os.FS
}

ServerParams defines dependencies for constructing the debug server.

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.

Jump to

Keyboard shortcuts

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