Documentation
¶
Overview ¶
Package httpreq parses and validates Echo request inputs for HTTP adapters.
Index ¶
- func BindAndValidate(c *echo.Context, req any) error
- func Pagination(c *echo.Context, defaultPageSize int) (int, int, error)
- func PathID(c *echo.Context, name, label string) (int64, error)
- func QueryBool(c *echo.Context, name string, fallback bool) (bool, error)
- func QueryInt(c *echo.Context, name string, fallback int) (int, error)
- func QueryInt64(c *echo.Context, name string, fallback int64) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAndValidate ¶
BindAndValidate binds a JSON request body and runs the server validator.
func Pagination ¶
Pagination parses standard page and page_size query parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.