api

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package api implements the HTTP API server. All routes follow the REST conventions defined in api-conventions.mdc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the HTTP API server.

func New

func New(i do.Injector) (*Server, error)

New creates a Server and registers it with the DI injector. The server is constructed but not started — call StartWithConfig to begin accepting connections.

func (*Server) StartWithConfig

func (s *Server) StartWithConfig(ctx context.Context, cfg *config.ServerConfig) error

StartWithConfig builds the router from the given ServerConfig and begins accepting HTTP connections. Blocks until ctx is cancelled. Called by the RuntimeManager each time the HTTP service is (re)started.

Directories

Path Synopsis
Package apidocs holds OpenAPI response/request shapes referenced from swag comments.
Package apidocs holds OpenAPI response/request shapes referenced from swag comments.
Package handler contains HTTP request handlers for the API server.
Package handler contains HTTP request handlers for the API server.

Jump to

Keyboard shortcuts

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