Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EventCollectionMap is a map indexing the attribute names of EventCollection // by view name. EventCollectionMap = map[string][]string{ "default": { "id", "finding_id", "source_id", "score", "time", }, } // EventMap is a map indexing the attribute names of Event by view name. EventMap = map[string][]string{ "default": { "id", "finding_id", "source_id", "score", "time", }, } )
Functions ¶
func ValidateEventCollection ¶
func ValidateEventCollection(result EventCollection) (err error)
ValidateEventCollection runs the validations defined on the viewed result type EventCollection.
func ValidateEventCollectionView ¶
func ValidateEventCollectionView(result EventCollectionView) (err error)
ValidateEventCollectionView runs the validations defined on EventCollectionView using the "default" view.
func ValidateEventView ¶
ValidateEventView runs the validations defined on EventView using the "default" view.
Types ¶
type EventCollection ¶
type EventCollection struct { // Type to project Projected EventCollectionView // View to render View string }
EventCollection is the viewed result type that is projected based on a view.
type EventCollectionView ¶
type EventCollectionView []*EventView
EventCollectionView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.