Documentation
¶
Overview ¶
Package gateway wires up and runs kram-gateway's HTTP server — extracted out of cmd/gateway so the unified cmd/kram binary can start a gateway in-process (a goroutine, not a subprocess) instead of shelling out to a separate binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, cfg *config.Config, logger *slog.Logger, credStore *credentials.Store) error
Run builds the gateway from cfg and serves until ctx is canceled, then shuts down gracefully. It blocks until the server has fully stopped. credStore may be nil (the standalone cmd/gateway dev binary and the evals harness never connect an OAuth-based provider) — it's only consulted for providers with AuthMode "oauth", to build the resolver closure that refreshes and re-reads their credential on every request instead of once at this function's own single call, which is long past by the time a short-lived OAuth token would expire.
Types ¶
This section is empty.