Documentation ¶
Index ¶
- func BadRequest(payload interface{}) error
- func CreateMethod(e *echo.Group, newFn newInstanceFn, crFn createFn)
- func Created(c echo.Context, id uint) error
- func DeleteMethod(e *echo.Group, fn deleteFn)
- func GetMethod(e *echo.Group, fn getByIDFn)
- func InternalServerError(payload interface{}) error
- func NotFound(payload interface{}) error
- func PatchMethod(e *echo.Group, newFn newInstanceFn, pFn patchFn)
- func Unauthorized() error
- func UpdateMethod(e *echo.Group, newFn newInstanceFn, upFn updateFn)
- type HTTPParam
- type HTTPParamValue
- type Location
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMethod ¶
CreateMethod creates an instance of a Resource
func DeleteMethod ¶
DeleteMethod creates a standard delete method for a resource
func InternalServerError ¶
func InternalServerError(payload interface{}) error
InternalServerError http 500 error
func PatchMethod ¶
PatchMethod creates a standard restful patch method
func UpdateMethod ¶
UpdateMethod creates a standard restful update method
Types ¶
type HTTPParam ¶
type HTTPParam struct {
// contains filtered or unexported fields
}
HTTPParam descriptor for an HTTP parameter
type HTTPParamValue ¶
HTTPParamValue parameter value for http
Click to show internal directories.
Click to hide internal directories.