Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPGateway ¶
func NewHTTPGateway(receiver *exec.Receiver, cfg *config.IntegrationConfig) app.Middleware
NewHTTPGateway creates the HTTP inbound gateway. The rate limiter counts per (system, client IP), so one flooding system cannot starve the others.
Types ¶
type HTTPGateway ¶
type HTTPGateway struct {
// contains filtered or unexported fields
}
HTTPGateway is the HTTP protocol adapter of the inbound flow: an app.Middleware (the framework's route-assembly hook — MCP precedent) that registers the external-facing endpoint, translates each request into the protocol-neutral envelope, and renders the adapter script's reply. It deliberately bypasses the /api dispatch model: external replies need raw control of status and body, never the standard result envelope.
func (*HTTPGateway) Apply ¶
func (g *HTTPGateway) Apply(router fiber.Router)
Apply registers the inbound endpoint. It is a real route, not a scan-every- request interceptor: non-integration traffic pays nothing for it.
func (*HTTPGateway) Name ¶
func (*HTTPGateway) Name() string
func (*HTTPGateway) Order ¶
func (*HTTPGateway) Order() int
Order places the gateway after the API engine and before the SPA fallback, alongside the MCP endpoint.