summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index acbeafdd6..cd7792ce1 100644
--- a/store/store.go
+++ b/store/store.go
@@ -47,6 +47,7 @@ type Store interface {
Status() StatusStore
FileInfo() FileInfoStore
Reaction() ReactionStore
+ JobStatus() JobStatusStore
MarkSystemRanUnitTests()
Close()
DropAllTables()
@@ -371,3 +372,11 @@ type ReactionStore interface {
GetForPost(postId string, allowFromCache bool) StoreChannel
DeleteAllWithEmojiName(emojiName string) StoreChannel
}
+
+type JobStatusStore interface {
+ SaveOrUpdate(status *model.JobStatus) StoreChannel
+ Get(id string) StoreChannel
+ GetAllByType(jobType string) StoreChannel
+ GetAllByTypePage(jobType string, offset int, limit int) StoreChannel
+ Delete(id string) StoreChannel
+}