api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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