probe

package
v1.261203.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MPL-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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.

func (*Handler) RegisterRoutes added in v1.261002.1

func (h *Handler) RegisterRoutes(rt *module.Routes)

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