server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompletedHandler

func NewCompletedHandler(checker status.Checker) http.HandlerFunc

NewCompletedHandler creates a handler for the /api/v1/completed endpoint.

func NewHealthHandler

func NewHealthHandler() http.HandlerFunc

NewHealthHandler creates a handler for the /health endpoint.

func NewQueueHandler

func NewQueueHandler(checker status.Checker) http.HandlerFunc

NewQueueHandler creates a handler for the /api/v1/queue endpoint.

func NewStatusHandler

func NewStatusHandler(checker status.Checker) http.HandlerFunc

NewStatusHandler creates a handler for the /api/v1/status endpoint.

Types

type Server

type Server interface {
	ListenAndServe(ctx context.Context) error
}

Server provides HTTP endpoints for status and monitoring.

func NewServer

func NewServer(
	addr string,
	statusChecker status.Checker,
) Server

NewServer creates a new Server.

Jump to

Keyboard shortcuts

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