Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(router *swagger.RouteGroup, h *Handler)
RegisterRoutes registers all probe-module endpoints on the given route group.
Types ¶
type E2EResponse ¶
type E2EResponse struct {
Success bool `json:"success"`
Error *errorDetail `json:"error,omitempty"`
Data *probe.E2EData `json:"data,omitempty"`
}
E2EResponse is the JSON envelope returned by POST /probe.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler exposes the probe HTTP endpoints. It carries the E2E and lightweight services; adaptive can be hung off the same struct when that strategy is decoupled from *Server.
func NewHandler ¶
func NewHandler(e2e *probe.E2EService, lightweight *probe.LightweightService) *Handler
NewHandler builds a Handler around the given probe services.
func (*Handler) HandleE2EProbe ¶
HandleE2EProbe handles SDK-level end-to-end probes (unified endpoint for rules, saved providers, and unsaved provider configs).
func (*Handler) HandleLightweightProbe ¶
HandleLightweightProbe handles the optional "Test Connection" probe used when adding API keys. Always returns 200 with success=true once a request passes validation — per-endpoint results in Data are informational only and never block onboarding.
type LightweightResponse ¶
type LightweightResponse struct {
Success bool `json:"success"`
Error *errorDetail `json:"error,omitempty"`
Data *probe.LightweightProbeResponseData `json:"data,omitempty"`
}
LightweightResponse is the JSON envelope returned by POST /probe/lightweight.