chore: add pkg names
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
// Aggregate implements functionality for working with event store streams as an aggregate.
|
||||
// When creating a new Aggregate the struct should have an ApplyEvent method and embed the AggregateRoot.
|
||||
type Aggregate interface {
|
||||
// ApplyEvent applies the event to the aggrigate state
|
||||
ApplyEvent(...Event)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// package event implements functionality for working with an eventstore.
|
||||
package event
|
||||
|
||||
import (
|
||||
@@ -28,6 +29,7 @@ func getULID() ulid.ULID {
|
||||
return ulid.MustNew(ulid.Now(), entropy)
|
||||
}
|
||||
|
||||
// Event implements functionality of an individual event used with the event store. It should implement the getter/setter for EventMeta and BinaryMarshaler/BinaryUnmarshaler.
|
||||
type Event interface {
|
||||
EventMeta() Meta
|
||||
SetEventMeta(Meta)
|
||||
|
||||
Reference in New Issue
Block a user