PLT-7639: Batch delete methods for data retention. (#7444)

Этот коммит содержится в:
George Goldberg
2017-09-15 17:35:55 +01:00
коммит произвёл Christopher Speller
родитель 2628022275
Коммит 8195c80aa1
14 изменённых файлов: 332 добавлений и 0 удалений

Просмотреть файл

@@ -171,6 +171,7 @@ type PostStore interface {
Overwrite(post *model.Post) StoreChannel
GetPostsByIds(postIds []string) StoreChannel
GetPostsBatchForIndexing(startTime int64, limit int) StoreChannel
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
}
type UserStore interface {
@@ -242,6 +243,7 @@ type AuditStore interface {
Save(audit *model.Audit) StoreChannel
Get(user_id string, offset int, limit int) StoreChannel
PermanentDeleteByUser(userId string) StoreChannel
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
}
type ClusterDiscoveryStore interface {
@@ -387,6 +389,7 @@ type FileInfoStore interface {
AttachToPost(fileId string, postId string) StoreChannel
DeleteForPost(postId string) StoreChannel
PermanentDelete(fileId string) StoreChannel
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
}
type ReactionStore interface {
@@ -394,6 +397,7 @@ type ReactionStore interface {
Delete(reaction *model.Reaction) StoreChannel
GetForPost(postId string, allowFromCache bool) StoreChannel
DeleteAllWithEmojiName(emojiName string) StoreChannel
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
}
type JobStore interface {