Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OperationMap is a map of attribute names in result type Operation indexed by // view name. OperationMap = map[string][]string{ "default": []string{ "status", }, } )
Functions ¶
func ValidateOperation ¶
ValidateOperation runs the validations defined on the viewed result type Operation.
func ValidateOperationView ¶
func ValidateOperationView(result *OperationView) (err error)
ValidateOperationView runs the validations defined on OperationView using the "default" view.
Types ¶
type Operation ¶
type Operation struct { // Type to project Projected *OperationView // View to render View string }
Operation is the viewed result type that is projected based on a view.
type OperationView ¶
type OperationView struct { // The status of the operation Status *string }
OperationView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.