Documentation ¶
Index ¶
- Variables
- func CreateRecordView(jsonRecord interface{}, construct interface{}) func(r render.Render, c martini.Context)
- func DeleteRecordView(viewParams Params) func(r render.Render, db *gorm.DB, c martini.Context)
- func FindRecordFromIDParameter(c martini.Context, out interface{}) bool
- func GetRecordView(viewParams Params) func(r render.Render, db *gorm.DB, c martini.Context)
- func KeyExists(db *gorm.DB, model interface{}, id int64) bool
- func ListRecordsView(viewParams Params) func(p *pagination.Pagination, db *gorm.DB, c martini.Context)
- func ModifyRecordFieldView(viewParams Params) func(r render.Render, db *gorm.DB, req *http.Request, c martini.Context)
- func RenderError(r render.Render, errorCode int, message string)
- func RenderErrorNotAllowed(r render.Render)
- func RenderResultOK(r render.Render)
- type Params
- type StringValueForm
Constants ¶
This section is empty.
Variables ¶
View Source
var Allowed string = "Allowed"
View Source
var NotAllowed string = "Not Allowed"
View Source
var WillNotCascade string = "Will not Cascade"
Functions ¶
func CreateRecordView ¶
func DeleteRecordView ¶
func GetRecordView ¶
func ListRecordsView ¶
func ModifyRecordFieldView ¶
func RenderErrorNotAllowed ¶
func RenderResultOK ¶
Types ¶
type Params ¶
type Params struct { Model interface{} // model struct zero value, e.g., User{} Allowed interface{} // dep injected func returning one of the not allowed reasons strings ToJSON interface{} // dep injected func returning map[string]interface{} Filter interface{} // dep injected func returning db *gorm.DB modified Valid interface{} // dep injected func returning one of the not allowed reasons strings Field string }
type StringValueForm ¶
type StringValueForm struct {
Value string `form:"value" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.