Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthResponse ¶ added in v1.0.5
type HealthResponse struct {
Status string `json:"status"`
Timestamp string `json:"timestamp"`
Uptime string `json:"uptime"`
}
HealthResponse represents the health check response
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP server for the traceroute API
func NewServer ¶
func NewServer() *Server
NewServer creates a new HTTP server with an initialized Traceroute instance
func (*Server) HealthHandler ¶ added in v1.0.5
func (s *Server) HealthHandler(w http.ResponseWriter, r *http.Request)
HealthHandler handles GET /health requests for sidecar health checks
func (*Server) TracerouteHandler ¶
func (s *Server) TracerouteHandler(w http.ResponseWriter, r *http.Request)
TracerouteHandler handles GET /traceroute requests
Click to show internal directories.
Click to hide internal directories.