Documentation
¶
Index ¶
- Variables
- func ValidateDescribedByTView(result *DescribedByTView) (err error)
- func ValidateNavTView(result *NavTView) (err error)
- func ValidateOrderListItemView(result *OrderListItemView) (err error)
- func ValidateOrderListRT(result *OrderListRT) (err error)
- func ValidateOrderListRTView(result *OrderListRTView) (err error)
- func ValidateOrderStatusRT(result *OrderStatusRT) (err error)
- func ValidateOrderStatusRTView(result *OrderStatusRTView) (err error)
- func ValidateOrderStatusRTViewTiny(result *OrderStatusRTView) (err error)
- func ValidateParameterTView(result *ParameterTView) (err error)
- func ValidateProductTView(result *ProductTView) (err error)
- func ValidateRefTView(result *RefTView) (err error)
- func ValidateSelfTView(result *SelfTView) (err error)
- func ValidateSelfWithDataTView(result *SelfWithDataTView) (err error)
- type DescribedByTView
- type NavTView
- type OrderListItemView
- type OrderListRT
- type OrderListRTView
- type OrderStatusRT
- type OrderStatusRTView
- type ParameterTView
- type ProductTView
- type RefTView
- type SelfTView
- type SelfWithDataTView
Constants ¶
This section is empty.
Variables ¶
var ( // OrderListRTMap is a map indexing the attribute names of OrderListRT by view // name. OrderListRTMap = map[string][]string{ "default": { "orders", "at-time", "links", }, } // OrderStatusRTMap is a map indexing the attribute names of OrderStatusRT by // view name. OrderStatusRTMap = map[string][]string{ "default": { "id", "name", "status", "ordered_at", "started_at", "finished_at", "parameters", "products", "service", "account", "links", }, "tiny": { "name", "status", "links", }, } )
Functions ¶
func ValidateDescribedByTView ¶
func ValidateDescribedByTView(result *DescribedByTView) (err error)
ValidateDescribedByTView runs the validations defined on DescribedByTView.
func ValidateNavTView ¶
ValidateNavTView runs the validations defined on NavTView.
func ValidateOrderListItemView ¶
func ValidateOrderListItemView(result *OrderListItemView) (err error)
ValidateOrderListItemView runs the validations defined on OrderListItemView.
func ValidateOrderListRT ¶
func ValidateOrderListRT(result *OrderListRT) (err error)
ValidateOrderListRT runs the validations defined on the viewed result type OrderListRT.
func ValidateOrderListRTView ¶
func ValidateOrderListRTView(result *OrderListRTView) (err error)
ValidateOrderListRTView runs the validations defined on OrderListRTView using the "default" view.
func ValidateOrderStatusRT ¶
func ValidateOrderStatusRT(result *OrderStatusRT) (err error)
ValidateOrderStatusRT runs the validations defined on the viewed result type OrderStatusRT.
func ValidateOrderStatusRTView ¶
func ValidateOrderStatusRTView(result *OrderStatusRTView) (err error)
ValidateOrderStatusRTView runs the validations defined on OrderStatusRTView using the "default" view.
func ValidateOrderStatusRTViewTiny ¶
func ValidateOrderStatusRTViewTiny(result *OrderStatusRTView) (err error)
ValidateOrderStatusRTViewTiny runs the validations defined on OrderStatusRTView using the "tiny" view.
func ValidateParameterTView ¶
func ValidateParameterTView(result *ParameterTView) (err error)
ValidateParameterTView runs the validations defined on ParameterTView.
func ValidateProductTView ¶
func ValidateProductTView(result *ProductTView) (err error)
ValidateProductTView runs the validations defined on ProductTView.
func ValidateRefTView ¶
ValidateRefTView runs the validations defined on RefTView.
func ValidateSelfTView ¶
ValidateSelfTView runs the validations defined on SelfTView.
func ValidateSelfWithDataTView ¶
func ValidateSelfWithDataTView(result *SelfWithDataTView) (err error)
ValidateSelfWithDataTView runs the validations defined on SelfWithDataTView.
Types ¶
type DescribedByTView ¶
DescribedByTView is a type that runs validations on a projected type.
type NavTView ¶
type NavTView struct {}
NavTView is a type that runs validations on a projected type.
type OrderListItemView ¶
type OrderListItemView struct { // Order ID ID *string // Optional customer provided name Name *string // Order status Status *string // DateTime order was placed OrderedAt *string // DateTime processing of order started StartedAt *string // DateTime order was finished FinishedAt *string // ID of ordered service ServiceID *string // ID of ordered service AccountID *string Links *SelfTView }
OrderListItemView is a type that runs validations on a projected type.
type OrderListRT ¶
type OrderListRT struct { // Type to project Projected *OrderListRTView // View to render View string }
OrderListRT is the viewed result type that is projected based on a view.
type OrderListRTView ¶
type OrderListRTView struct { // Orders Orders []*OrderListItemView // Time at which this list was valid AtTime *string // Navigation links Links *NavTView }
OrderListRTView is a type that runs validations on a projected type.
type OrderStatusRT ¶
type OrderStatusRT struct { // Type to project Projected *OrderStatusRTView // View to render View string }
OrderStatusRT is the viewed result type that is projected based on a view.
type OrderStatusRTView ¶
type OrderStatusRTView struct { // Order ID ID *string // Order status Status *string // DateTime order was placed OrderedAt *string // DateTime order processing started StartedAt *string // DateTime order processing finished FinishedAt *string // Products delivered for this order Products []*ProductTView // Reference to service requested Service *RefTView // Reference to billable account Account *RefTView Links *SelfTView // Optional customer provided name Name *string // Service parameters Parameters []*ParameterTView }
OrderStatusRTView is a type that runs validations on a projected type.
type ParameterTView ¶
ParameterTView is a type that runs validations on a projected type.
type ProductTView ¶
type ProductTView struct { ID *string Name *string Status *string MimeType *string Size *int64 Links *SelfWithDataTView }
ProductTView is a type that runs validations on a projected type.
type SelfTView ¶
type SelfTView struct { Self *string DescribedBy *DescribedByTView }
SelfTView is a type that runs validations on a projected type.
type SelfWithDataTView ¶
type SelfWithDataTView struct { Self *string DescribedBy *DescribedByTView Data *string }
SelfWithDataTView is a type that runs validations on a projected type.