Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListModifiers ¶
ListModifiers will modify the query, it can be url.Values for example Mostly used for Get and GetList
type MgrI ¶
type MgrI interface {
NewEmptyEntity() interface{}
Create(context.Context, interface{}, io.Reader) (interface{}, error)
Delete(context.Context, xid.ID) error
Get(context.Context, xid.ID) (interface{}, error)
GetList(context.Context, ListModifiers) (interface{}, error)
Update(context.Context, xid.ID, interface{}, io.Reader) (interface{}, error)
PartialUpdate(context.Context, xid.ID, PartialUpdateData, io.Reader) error
MapErrorToHTTPError(error) *gohttperror.ErrResponse
}
MgrI is the interface to initialize the new entity mgr
type PartialUpdateData ¶
type PartialUpdateData map[string]interface{}
PartialUpdateData represent the partial update data Used for PartialUpdate or PATCH in rest
Click to show internal directories.
Click to hide internal directories.