github.com/goadesign/goa/examples/chatter/gen/chatter/views
views
import "github.com/goadesign/goa/examples/chatter/gen/chatter/views"
Overview
Index
Package files
type ChatSummary
type ChatSummary struct {
// Type to project
Projected *ChatSummaryView
// View to render
View string
}
ChatSummary is the viewed result type that is projected based on a view.
func (*ChatSummary) Validate
func (result *ChatSummary) Validate() (err error)
Validate runs the validations defined on the viewed result type ChatSummary.
type ChatSummaryCollection
type ChatSummaryCollection struct {
// Type to project
Projected ChatSummaryCollectionView
// View to render
View string
}
ChatSummaryCollection is the viewed result type that is projected based on a view.
func (ChatSummaryCollection) Validate
func (result ChatSummaryCollection) Validate() (err error)
Validate runs the validations defined on the viewed result type ChatSummaryCollection.
type ChatSummaryCollectionView
type ChatSummaryCollectionView []*ChatSummaryView
ChatSummaryCollectionView is a type that runs validations on a projected type.
func (ChatSummaryCollectionView) Validate
func (result ChatSummaryCollectionView) Validate() (err error)
Validate runs the validations defined on ChatSummaryCollectionView using the “default” view.
func (ChatSummaryCollectionView) ValidateTiny
func (result ChatSummaryCollectionView) ValidateTiny() (err error)
ValidateTiny runs the validations defined on ChatSummaryCollectionView using the “tiny” view.
type ChatSummaryView
type ChatSummaryView struct {
// Message sent to the server
Message *string
// Length of the message sent
Length *int
// Time at which the message was sent
SentAt *string
}
ChatSummaryView is a type that runs validations on a projected type.
func (*ChatSummaryView) Validate
func (result *ChatSummaryView) Validate() (err error)
Validate runs the validations defined on ChatSummaryView using the “default” view.
func (*ChatSummaryView) ValidateTiny
func (result *ChatSummaryView) ValidateTiny() (err error)
ValidateTiny runs the validations defined on ChatSummaryView using the “tiny” view.
Generated by godoc2md