Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAPIServer ¶ added in v0.3.1
func BuildAPIServer( cfg *config.ApplicationConfig, resourceService services.ResourceService, adapterStatusService services.AdapterStatusService, schemaValidator *validators.SchemaValidator, jwtHandler *auth.JWTHandler, sessionFactory db.SessionFactory, tracingEnabled bool, ) (*server.APIServer, error)
BuildAPIServer assembles the middleware chains and route registrars, then wires them into a router and HTTP server.
Middleware slices that depend on runtime decisions (tracing on/off, auth on/off) are built here rather than inside the server package, so that package stays free of both pkg/config and those decisions.
jwtHandler may be nil when cfg.Server.JWT.Enabled is false. When JWT is enabled, jwtHandler must be non-nil or BuildAPIServer returns an error.
func NewServeCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.