zitadel/internal/eventstore/v2/eventstore.go
2020-09-24 08:52:10 +02:00

13 lines
360 B
Go

package eventstore
import (
"context"
)
type Eventstore interface {
Health(ctx context.Context) error
PushAggregates(ctx context.Context, aggregates ...*Aggregate) error
FilterEvents(ctx context.Context, searchQuery *SearchQueryFactory) (events []*Event, err error)
LatestSequence(ctx context.Context, searchQuery *SearchQueryFactory) (uint64, error)
}