Documentation
¶
Overview ¶
Package server assembles the HTTP layer from the modules' route contributions.
Index ¶
- func HTTP(groups registry.Routes, r fiber.Router)
- func HealthRoutes(checks registry.HealthChecks) transport.Endpoints
- func NewRouter(config *conf.Config, validate *validator.Validator, version Version, ...) (*fiber.App, error)
- func RootRoutes(config *conf.Config) transport.Endpoints
- func SpecJSON(title string, version Version, validate *validator.Validator, ...) ([]byte, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTP ¶
HTTP registers every route contribution on r, in contribution order; an endpoint's middlewares run before its handler.
func HealthRoutes ¶
func HealthRoutes(checks registry.HealthChecks) transport.Endpoints
HealthRoutes serves the probes; they stay out of the OpenAPI docs.
func RootRoutes ¶
RootRoutes sends visitors of the bare API host to the website.