Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurlResponse ¶ added in v0.260827.1
type CurlResponse struct {
Success bool `json:"success"`
Error *errorDetail `json:"error,omitempty"`
Data *probe.CurlData `json:"data,omitempty"`
}
CurlResponse is the JSON envelope returned by POST /probe/curl.
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.E2EProber, light *probe.LightProber) *Handler
NewHandler builds a Handler around the given probe services.
func (*Handler) HandleCurlProbe ¶ added in v0.260827.1
HandleCurlProbe constructs the curl equivalent of a probe request without executing it. Same request body and validation as POST /probe; secrets are returned as placeholder env vars ($TB_API_KEY / $UPSTREAM_API_KEY).
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.
func (*Handler) RegisterRoutes ¶ added in v1.261002.1
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.