aboutsummaryrefslogtreecommitdiff
path: root/keyserver/storage/tables/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/storage/tables/interface.go')
-rw-r--r--keyserver/storage/tables/interface.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyserver/storage/tables/interface.go b/keyserver/storage/tables/interface.go
index ac932d56..a4d5dede 100644
--- a/keyserver/storage/tables/interface.go
+++ b/keyserver/storage/tables/interface.go
@@ -20,6 +20,7 @@ import (
"encoding/json"
"github.com/matrix-org/dendrite/keyserver/api"
+ "github.com/matrix-org/gomatrixserverlib"
)
type OneTimeKeys interface {
@@ -45,3 +46,8 @@ type KeyChanges interface {
// Results are exclusive of fromOffset and inclusive of toOffset. A toOffset of sarama.OffsetNewest means no upper offset.
SelectKeyChanges(ctx context.Context, partition int32, fromOffset, toOffset int64) (userIDs []string, latestOffset int64, err error)
}
+
+type StaleDeviceLists interface {
+ InsertStaleDeviceList(ctx context.Context, userID string, isStale bool) error
+ SelectUserIDsWithStaleDeviceLists(ctx context.Context, domains []gomatrixserverlib.ServerName) ([]string, error)
+}