Documentation ¶
Index ¶
- func DELETEHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
- func GETHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
- func GETListHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
- func GetTestContextWithID(ctx context.Context, ID xid.ID) context.Context
- func ListModifiersFromURL(u *url.URL) crud.ListModifiers
- func PATCHHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
- func POSTHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
- func PUTHandler(cmgr crud.MgrI) func(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DELETEHandler ¶
DELETEHandler will delete a specific entity
func GETHandler ¶
GETHandler returns a unique entity
func GETListHandler ¶
GETListHandler will handle data from request and returns bytes to be written to response
func GetTestContextWithID ¶
GetTestContextWithID will return a context with an xid as chi URL Params
func ListModifiersFromURL ¶
func ListModifiersFromURL(u *url.URL) crud.ListModifiers
ListModifiersFromURL will parse the url into CRUD ListModifiers
func PATCHHandler ¶
PATCHHandler will update specific data for a specific entity Following https://tools.ietf.org/html/rfc7386 Content-Type: application/merge-patch+json
func POSTHandler ¶
POSTHandler will handle data from request and returns bytes to be written to response
func PUTHandler ¶
PUTHandler will update all data for a specific entity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.