Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateModelView ¶
type CreateModelView struct { Context *haruka.Context CreateModel func() interface{} ResponseTemplate serializer.TemplateSerializer RequestBody interface{} OnBeforeCreate func(v *CreateModelView, modelToCreate interface{}) OnError func(err error) GetValidators func(v *CreateModelView) []validator.Validator OnCreate func(view *CreateModelView, model interface{}) (interface{}, error) }
CreateModelView create model view
func (*CreateModelView) Run ¶
func (v *CreateModelView) Run()
type DefaultPagination ¶
type DefaultPagination struct { }
type DeleteModelView ¶
type DeleteModelView struct { Context *haruka.Context Lookup string OnError func(err error) Model gormh.DataModel GetResponseBody func() interface{} GetValidators func(v *DeleteModelView) []validator.Validator }
func (*DeleteModelView) Run ¶
func (v *DeleteModelView) Run()
type FilterMapping ¶
type ListView ¶
type ListView struct { Context *haruka.Context Pagination PageReader QueryBuilder interface{} FilterMapping []FilterMapping GetSerializerContext func(v *ListView, result interface{}) map[string]interface{} GetTemplate func() serializer.TemplateSerializer GetContainer func() serializer.ListContainerSerializer OnApplyQuery func(v *ListView) OnError func(err error) }
ListView fetch models list view
type UpdateModelView ¶
type UpdateModelView struct { Context *haruka.Context Lookup string OnError func(err error) Model gormh.DataModel Template serializer.TemplateSerializer GetValidators func(v *UpdateModelView) []validator.Validator RequestBody map[string]interface{} }
func (*UpdateModelView) Run ¶
func (v *UpdateModelView) Run()
Click to show internal directories.
Click to hide internal directories.