Documentation
¶
Index ¶
- Constants
- Variables
- type Factory
- type Obj
- type Prop
- type ReqErr
- func HandleCreateOne(ctx context.Context, w http.ResponseWriter, r *http.Request, fact Factory, ...) *ReqErr
- func HandleDeleteOne(ctx context.Context, w http.ResponseWriter, r *http.Request, desc Obj) *ReqErr
- func HandleGetList(ctx context.Context, w http.ResponseWriter, r *http.Request, fact Factory) *ReqErr
- func HandleGetOne(ctx context.Context, w http.ResponseWriter, r *http.Request, desc Obj) *ReqErr
- func HandleGetProp(ctx context.Context, w http.ResponseWriter, r *http.Request, o Obj, desc Prop) *ReqErr
- func HandleMany(ctx context.Context, w http.ResponseWriter, r *http.Request, f Factory, ...) *ReqErr
- func HandleOne(ctx context.Context, w http.ResponseWriter, r *http.Request, f Factory, ...) *ReqErr
- func HandleProp(ctx context.Context, w http.ResponseWriter, r *http.Request, f Factory, p Prop, ...) *ReqErr
- func HandleUpdateOne(ctx context.Context, w http.ResponseWriter, r *http.Request, desc Obj, ...) *ReqErr
- func HandleUpdateProp(ctx context.Context, w http.ResponseWriter, r *http.Request, o Obj, desc Prop, ...) *ReqErr
- func Respond(ctx context.Context, w http.ResponseWriter, result interface{}) *ReqErr
Constants ¶
View Source
const ( GenErr uint = 1 // Unclassified error BadRequest uint = 2 // Error parsing request data BadResp uint = 3 // Error generating response )
Variables ¶
View Source
var TraceFn func(context.Context, interface{})
Functions ¶
This section is empty.
Types ¶
type ReqErr ¶
func HandleCreateOne ¶
func HandleDeleteOne ¶
func HandleGetList ¶
func HandleGetOne ¶
func HandleGetProp ¶
func HandleMany ¶
func HandleProp ¶
func HandleUpdateOne ¶
func HandleUpdateProp ¶
Click to show internal directories.
Click to hide internal directories.