Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶ added in v0.1.35
type BaseController struct{}
BaseController exported
func (BaseController) Delete ¶ added in v0.1.43
Supports single and multiple deletes. Supports endpoints with nested resources in path. t is the type of the resource, or resources, to be deleted. p are the common parent resources' types, if any. Ordered as they appear in endpoint's path. c holds url and query params, dictates which specific resources are to be found and delete. Resources can implement custom logic in the Scope method to determine, whether o not, to abort Delete based on the parent resources finding result. Child resources can also implement custom logic in the BeforeDelete method to impose addtional constraints based on the requesting user UID and parent resources. BeforeDelete can also return a flag to abort Delete altogether.
func (BaseController) Fetch ¶ added in v0.1.39
Supports endpoints with nested resources in path. t is the type of resources to be fetches. p are the common parent resources, if any. Ordered as they appear in endpoint's path. c holds url and query params, dictates which specific resources are to be fetched. Resources can implement custom logic in the Scope method to impose addtional constraints based on the requesting user UID and parent resources.
func (BaseController) Find ¶ added in v0.1.39
Supports endpoints with nested resources in path. t is the resource type to be found. p are the parent resources' types, if any. Ordered as they appear in endpoint's path. c holds url and query params, dictates which specific resource is to be found. Resources can implement custom logic in the Scope method to impose addtional constraints based on the requesting user UID and parent resources.