probe

package
v0.260806.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

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

func (h *Handler) HandleE2EProbe(c *gin.Context)

HandleE2EProbe handles SDK-level end-to-end probes (unified endpoint for rules, saved providers, and unsaved provider configs).

func (*Handler) HandleLightweightProbe

func (h *Handler) HandleLightweightProbe(c *gin.Context)

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.

Jump to

Keyboard shortcuts

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