goes/data/event.go

16 lines
291 B
Go

package data
import (
"github.com/satori/go.uuid"
"reflect"
)
type Event struct {
AggregateId uuid.UUID
Payload interface{}
}
func (me *Event) Equals(other *Event) bool {
return me.AggregateId == other.AggregateId && reflect.DeepEqual(me.Payload, other.Payload)
}