Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EmptyValue define an empty value for error message EmptyValue = make([]int, 0) )
Functions ¶
func ParamValidation ¶
func ParamValidation(next echo.HandlerFunc) echo.HandlerFunc
ParamValidation validate the paramater of the request.
Types ¶
type Response ¶
type Response struct { Status Status `json:"status"` Data interface{} `json:"data"` }
Response defines the structure of the response entity.
func SetResponse ¶
SetResponse set the structure of the JSON response.
Click to show internal directories.
Click to hide internal directories.