Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyEvent = Event{}
Functions ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (Event) MarshalBSON ¶
func (*Event) UnmarshalBSON ¶
type IEvent ¶
type IEvent interface {
// ID returns the id of the event.
ID() ID
// Name returns the name of the event.
Name() string
// Time returns the time of the event.
Time() time.Time
// Data returns the event data.
Data() interface{}
// Aggregate returns the id, name and version of the aggregate that the
// event belongs to. aggregate should return zero values if the event is not
// an aggregate event.
Aggregate() (id string, name string, version int)
}
Click to show internal directories.
Click to hide internal directories.