debug

package
v0.0.0-...-4dc7e4c Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugHandler

type DebugHandler struct {
	// contains filtered or unexported fields
}

DebugHandler handles debug requests

func NewDebugHandler

func NewDebugHandler(log *logger.Logger, debug bool) *DebugHandler

NewDebugHandler creates a new debug handler

func (*DebugHandler) BuildInfo

func (h *DebugHandler) BuildInfo(w http.ResponseWriter, r *http.Request)

BuildInfo returns build information

func (*DebugHandler) HealthCheck

func (h *DebugHandler) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck performs a health check

func (*DebugHandler) MemoryStats

func (h *DebugHandler) MemoryStats(w http.ResponseWriter, r *http.Request)

MemoryStats returns memory statistics

func (*DebugHandler) RegisterRoutes

func (h *DebugHandler) RegisterRoutes(mux *http.ServeMux)

RegisterRoutes registers the debug routes

func (*DebugHandler) RuntimeInfo

func (h *DebugHandler) RuntimeInfo(w http.ResponseWriter, r *http.Request)

RuntimeInfo returns runtime information

func (*DebugHandler) TraceHandler

func (h *DebugHandler) TraceHandler(w http.ResponseWriter, r *http.Request)

TraceHandler returns runtime traces

type ProfilerHandler

type ProfilerHandler struct {
	// contains filtered or unexported fields
}

ProfilerHandler handles profiling requests

func NewProfilerHandler

func NewProfilerHandler(log *logger.Logger, debug bool) *ProfilerHandler

NewProfilerHandler creates a new profiler handler

func (*ProfilerHandler) RegisterRoutes

func (h *ProfilerHandler) RegisterRoutes(mux *http.ServeMux)

RegisterRoutes registers the profiler routes

Jump to

Keyboard shortcuts

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