Versions in this module Expand all Collapse all v1 v1.3.8 Feb 19, 2026 v1.3.7 Feb 16, 2026 v1.3.6 Feb 6, 2026 v1.3.5 Feb 5, 2026 v1.3.4 Feb 4, 2026 v1.3.3 Feb 4, 2026 Changes in this version type ResponseError + Internal string v1.3.2 Jan 31, 2026 v1.3.1 Jan 30, 2026 v1.3.0 Jan 30, 2026 Changes in this version + func SafeLogFieldsExtractor(ctx *echo.Context) map[string]any v1.2.1 Jan 30, 2026 v1.2.0 Jan 25, 2026 v1.1.0 Jan 24, 2026 v1.0.0 Jan 21, 2026 Changes in this version + const DefaultPage + const DefaultPageSize + const ErrCodeBadRequest + const ErrCodeConflict + const ErrCodeForbidden + const ErrCodeInternal + const ErrCodeNotFound + const ErrCodeServiceUnavail + const ErrCodeUnauthorized + const ErrCodeValidation + const MaxPageSize + func BadRequestError(err error, details ...string) *echo.HTTPError + func ConflictError(err error, details ...string) *echo.HTTPError + func ExecuteStandardized[REQ any, RES any](c *echo.Context, request *REQ, handlerName string, ...) (resp any, httpErr *echo.HTTPError) + func ForbiddenError(err error, details ...string) *echo.HTTPError + func HTTPError(code int, err error, details ...string) *echo.HTTPError + func InternalError(err error, details ...string) *echo.HTTPError + func NormalizePage(page, pageSize int) (normalizedPage, normalizedSize, offset int) + func NotFoundError(err error, details ...string) *echo.HTTPError + func RequestIDSkipper(skip bool) echomiddleware.Skipper + func RestLogFieldsExtractor(ctx *echo.Context) map[string]any + func ServiceUnavailableError(err error, details ...string) *echo.HTTPError + func UnauthorizedError(err error, details ...string) *echo.HTTPError + func Wrapper[TREQ any](wrapped func(*echo.Context, *TREQ) (any, *echo.HTTPError)) echo.HandlerFunc + type APIResponse struct + Data T + Pagination *Pagination + RequestID string + type Config struct + AllowOrigins []string + BodyLimit string + EnableCors bool + GracePeriod time.Duration + Host string + Port int + ReadTimeout time.Duration + WriteTimeout time.Duration + type HandlerFunc func(log zerolog.Logger, c *echo.Context, request *REQ) (*HandlerResponse[RES], *echo.HTTPError) + type HandlerResponse struct + Data T + Pagination *Pagination + func NewPaginatedResponse[T any](data T, pagination *Pagination) *HandlerResponse[T] + func NewResponse[T any](data T) *HandlerResponse[T] + type Pagination struct + Page int + PageSize int + TotalCount int + TotalPages int + func NewPagination(page, pageSize, totalCount int) *Pagination + type ResponseError struct + Message string + func (e ResponseError) Error() string + type Server struct + Echo *echo.Echo + Root *echo.Group + func New(cfg *Config) *Server + func (s *Server) Name() string + func (s *Server) Start(_ context.Context) error + func (s *Server) Stop() error v0 v0.0.3 Dec 5, 2025 v0.0.2 Dec 5, 2025 v0.0.1 Oct 31, 2025