Documentation
¶
Index ¶
- Variables
- func IsEnabled(cfg *Config) bool
- func RegisterFgprof(mux *ServeMux)
- func RegisterPprof(mux *ServeMux)
- func RegisterPsutil(mux *ServeMux, cont *content.Content)
- func RegisterStatsviz(mux *ServeMux) error
- type CPU
- type Config
- type Mem
- type Response
- type ServeMux
- type Server
- type ServerParams
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewServeMux), fx.Provide(NewServer), fx.Invoke(RegisterStatsviz), fx.Invoke(RegisterPprof), fx.Invoke(RegisterFgprof), fx.Invoke(RegisterPsutil), )
Module for fx.
Functions ¶
func RegisterFgprof ¶ added in v1.154.1
func RegisterFgprof(mux *ServeMux)
RegisterFgprof for debug.
func RegisterPsutil ¶ added in v1.144.0
RegisterPprof for debug.
func RegisterStatsviz ¶ added in v1.144.0
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 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 ServeMux ¶ added in v1.496.0
ServeMux is a wrapper around http.ServeMux.
func NewServeMux ¶ added in v1.154.7
func NewServeMux() *ServeMux
NewServeMux creates a new ServeMux.
Click to show internal directories.
Click to hide internal directories.