api

package
v1.19.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDiagnosticsRoutes

func RegisterDiagnosticsRoutes(group *echo.Group, authMiddleware *middleware.AuthMiddleware, wsMetrics *ws.WebSocketMetrics)

func RegisterWebhookTrigger

func RegisterWebhookTrigger(g *echo.Group, webhookService *services.WebhookService)

RegisterWebhookTrigger registers the public (unauthenticated) trigger endpoint. The token in the URL is the sole authentication mechanism. Rate-limited via PerIPRateLimitForPaths in router_bootstrap.go.

func SetupAPI

func SetupAPI(e *echo.Echo, apiGroup *echo.Group, cfg *config.Config, svc *Services) huma.API

SetupAPI creates and configures the Huma API attached to the Echo router.

func SetupAPIForSpec

func SetupAPIForSpec() huma.API

SetupAPIForSpec creates a Huma API instance for OpenAPI spec generation only. No services are required - this is purely for schema generation.

Types

type DiagnosticsHandler

type DiagnosticsHandler struct {
	// contains filtered or unexported fields
}

func (*DiagnosticsHandler) WebSocketDiagnostics

func (h *DiagnosticsHandler) WebSocketDiagnostics(c echo.Context) error

type Services

Services holds all service dependencies needed by Huma handlers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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