Documentation
¶
Overview ¶
Package api provides the HTTP API server for the control plane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the current version of the API server. This should be set at build time using ldflags.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP API server.
func NewServer ¶
func NewServer(cfg *config.Config, st store.Store, q queue.Queue, authSvc *auth.Service, logger *slog.Logger) *Server
NewServer creates a new API server with the given dependencies.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package errors provides structured error types and response helpers for the API.
|
Package errors provides structured error types and response helpers for the API. |
|
Package handlers provides HTTP request handlers for the API.
|
Package handlers provides HTTP request handlers for the API. |
|
Package health provides health check functionality for API components.
|
Package health provides health check functionality for API components. |
|
Package middleware provides HTTP middleware for the API server.
|
Package middleware provides HTTP middleware for the API server. |
Click to show internal directories.
Click to hide internal directories.