mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-19 07:11:32 +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 <livio.a@gmail.com>
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)
|
|
}
|