Documentation ¶
Index ¶
Constants ¶
View Source
const (
TaskAggregateType string = "Task"
)
Variables ¶
View Source
var (
ErrUnknownEventType = errors.New("unknown event type")
)
Functions ¶
func GetTopicName ¶
func NewSubscription ¶
Types ¶
type Event ¶
type Event struct { EventID string AggregateID string EventType EventType AggregateType AggregateType Version uint64 Data []byte Metadata []byte Timestamp time.Time }
Event is an internal representation of an event, returned when the Aggregate uses NewEvent to create a new event. The events loaded from the db is represented by each DBs internal event type, implementing Event.
Click to show internal directories.
Click to hide internal directories.