Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateRepo ¶
type AggregateRepo interface { CreateIfNotExist(ctx context.Context, id, typ string) error CheckAndUpdateVersion(ctx context.Context, agg ev.Aggregate) bool CreateSnapshot(ctx context.Context, agg ev.Aggregate) error ReadSnapshot(ctx context.Context, aggregateID string, version int, agg ev.Aggregate) bool }
func NewAggregate ¶
func NewAggregate(pool *pgxpool.Pool, s ev.Serializer) AggregateRepo
Click to show internal directories.
Click to hide internal directories.