zitadel/internal/key/repository/view/query.go

17 lines
458 B
Go
Raw Normal View History

package view
import (
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/repository/iam"
"github.com/caos/zitadel/internal/repository/keypair"
)
func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder {
return eventstore.NewSearchQueryBuilder(eventstore.ColumnsEvent).
AddQuery().
AggregateTypes(iam.AggregateType).
SequenceGreater(latestSequence).
EventTypes(keypair.AddedEventType).
Builder()
}