helper

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBody added in v1.1.1

func DecodeBody(c echo.Context, dst interface{}) error

DecodeBody decodes the request body into destination interface

func DecodePathParams added in v1.2.0

func DecodePathParams(c echo.Context, dst interface{}) error

DecodePathParams decodes the path params into destination interface

func DecodeQueryParams added in v1.2.0

func DecodeQueryParams(c echo.Context, dst interface{}) error

DecodeQueryParams decodes the query params into destination interface

func RespondError

func RespondError(c echo.Context, httpStatusCode int, respErr error) error

RespondError sends a json error response

func RespondOk

func RespondOk(c echo.Context, data interface{}) error

RespondOk sends a json success response

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL