mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-06 10:58:48 +00:00
* fix: pub sub * fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * fix: pub sub in new eventstore * fix tests Co-authored-by: Livio Amstutz <[email protected]>
17 lines
505 B
Go
17 lines
505 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
)
|
|
|
|
type Repository interface {
|
|
Health(ctx context.Context) error
|
|
|
|
// Filter returns all events matching the given search query
|
|
Filter(ctx context.Context, searchQuery *models.SearchQueryFactory) (events []*models.Event, err error)
|
|
//LatestSequence returns the latests sequence found by the the search query
|
|
LatestSequence(ctx context.Context, queryFactory *models.SearchQueryFactory) (uint64, error)
|
|
}
|