Versions in this module Expand all Collapse all v0 v0.0.4 Apr 8, 2022 v0.0.3 Apr 7, 2022 Changes in this version + const ErrCodeParsingBody + func Wrapper(log zerolog.Logger, f TypedHandler) http.HandlerFunc + type ErrorResponse struct + Error error + ErrorCode string + ErrorMsg string + HTTPStatusCode int + func BindBody(r *http.Request, target interface{}) *ErrorResponse + func NewErrorResponse(e error, hsc int, ec string, msg string) *ErrorResponse + func (her *ErrorResponse) IsEqual(e1 *ErrorResponse) bool + type InternalServerError struct + Err error + func (e InternalServerError) Error() string + func (e InternalServerError) ToErrorResponse() *ErrorResponse + type MissingParamError struct + Name string + func (e MissingParamError) Error() string + func (e MissingParamError) ToErrorResponse() *ErrorResponse + type NamedURLParamsGetter func(ctx context.Context, key string) (string, *ErrorResponse) + type NotFoundError struct + Designation string + func (e NotFoundError) Error() string + func (e NotFoundError) ToErrorResponse() *ErrorResponse + type ParsingParamError struct + Name string + Value string + func (e ParsingParamError) Error() string + func (e ParsingParamError) ToErrorResponse() *ErrorResponse + type Response struct + Body any + HTTPStatusCode int + type TypedHandler func(r *http.Request) (*Response, *ErrorResponse)