Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LabelsMap is a map indexing the attribute names of Labels by view name. LabelsMap = map[string][]string{ "default": { "labels", }, } )
Functions ¶
func ValidateLabels ¶
ValidateLabels runs the validations defined on the viewed result type Labels.
func ValidateLabelsView ¶
func ValidateLabelsView(result *LabelsView) (err error)
ValidateLabelsView runs the validations defined on LabelsView using the "default" view.
Types ¶
type Labels ¶
type Labels struct { // Type to project Projected *LabelsView // View to render View string }
Labels is the viewed result type that is projected based on a view.
type LabelsView ¶
type LabelsView struct { // List of labels Labels []string }
LabelsView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.