Documentation ¶
Index ¶
- Variables
- func ValidateAuthorPhotoView(result *AuthorPhotoView) (err error)
- func ValidateDataEventView(result *DataEventView) (err error)
- func ValidateDataEvents(result *DataEvents) (err error)
- func ValidateDataEventsView(result *DataEventsView) (err error)
- func ValidatePostAuthorView(result *PostAuthorView) (err error)
- type AuthorPhotoView
- type DataEventView
- type DataEvents
- type DataEventsView
- type PostAuthorView
Constants ¶
This section is empty.
Variables ¶
var ( // DataEventsMap is a map of attribute names in result type DataEvents indexed // by view name. DataEventsMap = map[string][]string{ "default": []string{ "events", }, } // DataEventMap is a map of attribute names in result type DataEvent indexed by // view name. DataEventMap = map[string][]string{ "default": []string{ "id", "createdAt", "updatedAt", "author", "title", "description", "bookmark", "start", "end", }, } )
Functions ¶
func ValidateAuthorPhotoView ¶
func ValidateAuthorPhotoView(result *AuthorPhotoView) (err error)
ValidateAuthorPhotoView runs the validations defined on AuthorPhotoView.
func ValidateDataEventView ¶
func ValidateDataEventView(result *DataEventView) (err error)
ValidateDataEventView runs the validations defined on DataEventView using the "default" view.
func ValidateDataEvents ¶
func ValidateDataEvents(result *DataEvents) (err error)
ValidateDataEvents runs the validations defined on the viewed result type DataEvents.
func ValidateDataEventsView ¶
func ValidateDataEventsView(result *DataEventsView) (err error)
ValidateDataEventsView runs the validations defined on DataEventsView using the "default" view.
func ValidatePostAuthorView ¶
func ValidatePostAuthorView(result *PostAuthorView) (err error)
ValidatePostAuthorView runs the validations defined on PostAuthorView.
Types ¶
type AuthorPhotoView ¶
type AuthorPhotoView struct {
URL *string
}
AuthorPhotoView is a type that runs validations on a projected type.
type DataEventView ¶
type DataEventView struct { ID *int64 CreatedAt *int64 UpdatedAt *int64 Author *PostAuthorView Title *string Description *string Bookmark *string Start *int64 End *int64 }
DataEventView is a type that runs validations on a projected type.
type DataEvents ¶
type DataEvents struct { // Type to project Projected *DataEventsView // View to render View string }
DataEvents is the viewed result type that is projected based on a view.
type DataEventsView ¶
type DataEventsView struct {
Events []*DataEventView
}
DataEventsView is a type that runs validations on a projected type.
type PostAuthorView ¶
type PostAuthorView struct { ID *int32 Name *string Photo *AuthorPhotoView }
PostAuthorView is a type that runs validations on a projected type.