Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewServer), fx.Invoke(RegisterStatsviz), fx.Invoke(RegisterPprof), fx.Invoke(RegisterFgprof), fx.Invoke(RegisterPsutil), )
Module for fx.
Functions ¶
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 Server ¶ added in v1.144.0
Server for debug.
func NewServer ¶ added in v1.144.0
func NewServer(params ServerParams) (*Server, error)
NewServer for debug.
type ServerParams ¶ added in v1.144.0
ServerParams for debug.
Click to show internal directories.
Click to hide internal directories.