Documentation ¶
Index ¶
- func ConvertAggBase[I ID, P AggBaseSetter[I]](a dgo.AggBase, p P, parseID ParseID[I]) (P, error)
- func ConvertEvent[I ID, E Event[I]](de *dgo.Event, newEvent func() E, newVid NewVid[I]) (E, error)
- func ReverseAggBase[I ID](p AggBaseGetter[I]) dgo.AggBase
- type AggBaseGetter
- type AggBaseSetter
- type Aggregate
- type Event
- type ID
- type NewVid
- type ObjectID
- type ParseID
- type String
- type U64
- type Vid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAggBase ¶
ConvertAggBase 从DomainObject转为PersistenceObject
func ConvertEvent ¶
func ReverseAggBase ¶
func ReverseAggBase[I ID](p AggBaseGetter[I]) dgo.AggBase
ReverseAggBase 从PersistenceObject转为DomainObject
Types ¶
type AggBaseGetter ¶
type AggBaseSetter ¶
type Aggregate ¶
type Aggregate[I ID] interface { AggBaseGetter[I] AggBaseSetter[I] }
Aggregate 仓储层聚合接口,任何仓储实现必须实现此接口
type ObjectID ¶
ObjectID mongodb默认ID
func NewObjectID ¶
func NewObjectID() ObjectID
func (ObjectID) MarshalBSONValue ¶
Click to show internal directories.
Click to hide internal directories.