servecmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

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

func NewServeCommand() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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