Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateRoot ¶
type AggregateRoot interface { // Get all the aggregate root's immutable events PullDomainEvents() []event.Domain // Register a new event Record(e event.Domain) // Parse binary data to struct UnmarshalBinary(data []byte) error // Parse current in-memory data to binary MarshalBinary() ([]byte, error) // Get an aggregate root primitive-only version ToPrimitive() interface{} }
type UserRoot ¶
func (UserRoot) MarshalBinary ¶
MarshalBinary Parse current in-memory data to binary
func (UserRoot) PullDomainEvents ¶
PullDomainEvents Get all the aggregate root's immutable events
func (UserRoot) ToPrimitive ¶
func (r UserRoot) ToPrimitive() *UserRootPrimitive
ToPrimitive Get an aggregate root primitive-only version
func (*UserRoot) UnmarshalBinary ¶
UnmarshalBinary Parse binary data to struct
type UserRootPrimitive ¶
type UserRootPrimitive struct {
User *entity.UserPrimitive `json:"user"`
}
Click to show internal directories.
Click to hide internal directories.