debug

package
v1.352.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 17 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.144.0

func IsEnabled(cfg *Config) bool

IsEnabled for HTTP.

func RegisterFgprof added in v1.154.1

func RegisterFgprof(srv *Server)

RegisterFgprof for debug.

func RegisterPprof added in v1.144.0

func RegisterPprof(srv *Server)

RegisterPprof for debug.

func RegisterPsutil added in v1.144.0

func RegisterPsutil(srv *Server, cont *content.Content)

RegisterPprof for debug.

func RegisterStatsviz added in v1.144.0

func RegisterStatsviz(srv *Server) error

RegisterStatsviz for debug.

Types

type CPU added in v1.351.0

type CPU struct {
	Info  []cpu.InfoStat  `yaml:"info,omitempty" json:"info,omitempty" toml:"info,omitempty"`
	Times []cpu.TimesStat `yaml:"times,omitempty" json:"times,omitempty" toml:"times,omitempty"`
}

CPU for debug.

type Config added in v1.112.0

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

Config for HTTP.

type Mem added in v1.351.0

type Mem struct {
	Swap    *mem.SwapMemoryStat    `yaml:"swap,omitempty" json:"swap,omitempty" toml:"swap,omitempty"`
	Virtual *mem.VirtualMemoryStat `yaml:"virtual,omitempty" json:"virtual,omitempty" toml:"virtual,omitempty"`
	Devices []*mem.SwapDevice      `yaml:"devices,omitempty" json:"devices,omitempty" toml:"devices,omitempty"`
}

Mem for debug.

type Response added in v1.351.0

type Response struct {
	CPU *CPU `yaml:"cpu,omitempty" json:"cpu,omitempty" toml:"cpu,omitempty"`
	Mem *Mem `yaml:"mem,omitempty" json:"mem,omitempty" toml:"mem,omitempty"`
}

Response for debug.

type Server added in v1.144.0

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

Server for debug.

func NewServer added in v1.144.0

func NewServer(params ServerParams) (*Server, error)

NewServer for debug.

func (*Server) ServeMux added in v1.154.3

func (s *Server) ServeMux() *http.ServeMux

ServeMux for debug.

type ServerParams added in v1.144.0

type ServerParams struct {
	fx.In

	Shutdowner fx.Shutdowner
	Config     *Config
	Logger     *zap.Logger
}

ServerParams for debug.

Jump to

Keyboard shortcuts

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