Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SavedBookmarkMap is a map of attribute names in result type SavedBookmark // indexed by view name. SavedBookmarkMap = map[string][]string{ "default": []string{ "url", "bookmark", "token", }, } )
Functions ¶
func ValidateSavedBookmark ¶
func ValidateSavedBookmark(result *SavedBookmark) (err error)
ValidateSavedBookmark runs the validations defined on the viewed result type SavedBookmark.
func ValidateSavedBookmarkView ¶
func ValidateSavedBookmarkView(result *SavedBookmarkView) (err error)
ValidateSavedBookmarkView runs the validations defined on SavedBookmarkView using the "default" view.
Types ¶
type SavedBookmark ¶
type SavedBookmark struct { // Type to project Projected *SavedBookmarkView // View to render View string }
SavedBookmark is the viewed result type that is projected based on a view.
type SavedBookmarkView ¶
SavedBookmarkView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.