server

package
v0.0.0-...-d7e1f8c Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server assembles the HTTP layer from the modules' route contributions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(groups registry.Routes, r fiber.Router)

HTTP registers every route contribution on r.

func HealthRoutes

func HealthRoutes(checks registry.HealthChecks) transport.Endpoints

HealthRoutes serves the probes; they stay out of the OpenAPI docs.

func NewRouter

func NewRouter(
	config *conf.Config,
	log *slog.Logger,
	validate *validator.Validator,
	version Version,
	routes registry.Routes,
) (*fiber.App, error)

func SpecJSON

func SpecJSON(title string, version Version, validate *validator.Validator, groups registry.Routes) ([]byte, error)

SpecJSON assembles the OpenAPI 3.1 document from every documented endpoint.

func WsRoutes

func WsRoutes() transport.Endpoints

Types

type Version

type Version string

Version is the build version, injected by main; the OpenAPI document carries it.

func NewVersion

func NewVersion(version string) Version

NewVersion normalizes the build-time version for generated documentation.

Jump to

Keyboard shortcuts

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