Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelCreateHandler ¶
ModelCreateHandler for request to create a model entity
func ModelDeleteHandler ¶
ModelDeleteHandler for request to delete a model entity
func ModelGetAllHandler ¶
ModelGetAllHandler for request to get all model entities
func ModelGetHandler ¶
ModelGetHandler for request to get an model entity by id
func ModelUpdateHandler ¶
ModelUpdateHandler for request to update a model entity
Types ¶
type PayloadCfg ¶
type PayloadCfg struct { ShowDetails bool StrictFields bool Fields []string ShowRefs bool ShowBackRefs bool ShowChildren bool }
PayloadCfg instructs how to build the payload
func (*PayloadCfg) BackRefFieldsToShow ¶
func (cfg *PayloadCfg) BackRefFieldsToShow(modelInfo models.ModelInfo) (fields []string)
BackRefFieldsToShow returns all the backref fields to include in the payload
func (*PayloadCfg) ChildFieldsToShow ¶
func (cfg *PayloadCfg) ChildFieldsToShow(modelInfo models.ModelInfo) (fields []string)
ChildFieldsToShow returns all the child fields to include in the payload
func (*PayloadCfg) RefFieldsToShow ¶
func (cfg *PayloadCfg) RefFieldsToShow(modelInfo models.ModelInfo) (fields []string)
RefFieldsToShow returns all the ref fields to include in the payload
Click to show internal directories.
Click to hide internal directories.