Versions in this module Expand all Collapse all v1 v1.1.0 Apr 1, 2026 v1.0.0 Mar 22, 2026 Changes in this version + var ErrBadRequest = errors.New("bad request") + var ErrForbidden = errors.New("forbidden") + var ErrInternalError = errors.New("internal server error") + var ErrNotFound = errors.New("not found") + var ErrUnprocessable = errors.New("unprocessable") + func Err(status int, w http.ResponseWriter, err error) error + func JSON(status int, w http.ResponseWriter, data any) error + type HandlerFunc func(context.Context, *container.Container, zerolog.Logger, http.ResponseWriter, ...) error + type Server struct + func New(ctx context.Context, di *container.Container, logger zerolog.Logger) *Server + func (s *Server) Register() + func (s *Server) Route(name string, pattern string, f HandlerFunc) + func (s *Server) Serve()