Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guard ¶
type Guard struct {
// contains filtered or unexported fields
}
Guard is a projection guard. It is used by the projection system to determine if an event should be applied to a projection.
type Option ¶
type Option func(*Guard)
Option is a projection guard option.
func Any ¶
Any returns an Option that specifies the guard for the given event. The projection system will call the guard before applying the given event to a projection and only applies the event if the guard returns true. If the data of an event cannot be casted to the provided type, the event will not be applied.
func Event ¶
Event returns an Option that specifies the guard for the given event. The projection system will call the guard before applying the given event to a projection and only applies the event if the guard returns true. If the data of an event cannot be casted to the provided type, the event will not be applied.