Documentation
¶
Index ¶
- func Parse(c echo.Context, v any, pattern string) error
- func ParseForm(c echo.Context, v any) error
- func ParseHeader(headerValue string) map[string]string
- func ParseHeaders(c echo.Context, v any) error
- func ParseJsonBody(c echo.Context, v any) error
- func ParsePath(c echo.Context, v any, pattern string) error
- func ParseQuery(c echo.Context, v any) error
- func SetValidator(val Validator)
- func ValidateStruct(v any) error
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseForm ¶
ParseForm parses the form request. ParseForm parses the form request, including multipart form data.
func ParseHeader ¶
ParseHeader parses the request header and returns a map.
func ParseHeaders ¶
ParseHeaders parses the headers request.
func ParseJsonBody ¶
ParseJsonBody parses the post request which contains json in body.
func SetValidator ¶
func SetValidator(val Validator)
SetValidator sets the validator. The validator is used to validate the request, only called in Parse, not in ParseHeaders, ParseForm, ParseHeader, ParseJsonBody, ParsePath.
func ValidateStruct ¶
ValidateStruct validates the struct fields based on the `validate` tag.
Types ¶
Click to show internal directories.
Click to hide internal directories.