Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(cfg *config.Config, s *store.Store, r *runner.Runner, reg *registry.Registry) *gin.Engine
NewRouter constructs the Gin engine with all routes, middleware, and handler bindings. It wires up:
- /health and /ready (unauthenticated, for orchestrators)
- /v1/* (authenticated via Bearer token, tenant-scoped)
The router uses gin.New() (no default middleware) and explicitly adds Recovery and structured RequestLogger middleware so the log output is fully controlled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.