Documentation ¶
Overview ¶
Package user serves as a small domain example of how to model an Aggregate using go-eventually.
This package is used for integration tests in the parent module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventProtoSerde = serde.Fused[message.Message, *proto.Event]{ Serializer: serde.SerializerFunc[message.Message, *proto.Event](protoEventSerializer), Deserializer: serde.DeserializerFunc[message.Message, *proto.Event](protoEventDeserializer), }
EventProtoSerde is the serde.Serde implementation for User domain events to map to their Protobuf type, defined in the proto/ folder.
View Source
var ProtoSerde = serde.Fused[*User, *proto.User]{ Serializer: serde.SerializerFunc[*User, *proto.User](protoSerializer), Deserializer: serde.DeserializerFunc[*User, *proto.User](protoDeserializer), }
ProtoSerde is the serde.Serde implementation for a User to map to its Protobuf type, defined in the proto/ folder.
View Source
var Type = aggregate.Type[uuid.UUID, *User]{ Name: "User", Factory: func() *User { return &User{} }, }
Type is the User aggregate type.
Functions ¶
This section is empty.
Types ¶
type EmailWasUpdated ¶
type EmailWasUpdated struct {
Email string
}
EmailWasUpdated is the domain event fired after a User email is updated.
Click to show internal directories.
Click to hide internal directories.