Versions in this module Expand all Collapse all v0 v0.7.0 Jul 23, 2026 Changes in this version + var HealthEndPnt = "/health" + var StatusEndPnt = "/status" + func Handle(h APIHandler) httprouter.Handle + func HealthHandler(service, version string, checks ...Check) httprouter.Handle + func StatusHandler(service, version string) httprouter.Handle + func WriteJSON(w http.ResponseWriter, code int, payload any) error + type APIHandler func(r *http.Request, p httprouter.Params) (any, error) + type Check struct + Name string + Probe func(context.Context) error + type HTTPServer struct + func New(port int, svc services.Service) *HTTPServer + func (h *HTTPServer) Port() string + func (h *HTTPServer) Start(ctx context.Context) error + func (h *HTTPServer) Stop() error