Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagnosticsService ¶
type DiagnosticsService struct {
// contains filtered or unexported fields
}
DiagnosticsService gathers Go runtime, memory, and garbage-collector statistics for the diagnostics endpoints. It holds no external dependencies; WebSocket metrics and worker-goroutine counts are merged in at the handler layer to avoid an import cycle with the api/ws package.
func NewDiagnosticsService ¶
func NewDiagnosticsService() *DiagnosticsService
NewDiagnosticsService returns a DiagnosticsService. startedAt is captured at construction (≈ process start) and used to report uptime.
func (*DiagnosticsService) Collect ¶
func (s *DiagnosticsService) Collect() (system.RuntimeInfo, system.MemoryInfo, system.GCInfo)
Collect samples the current runtime, memory, and GC state.
Click to show internal directories.
Click to hide internal directories.