summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go')
-rw-r--r--vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go b/vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go
new file mode 100644
index 00000000..442f667f
--- /dev/null
+++ b/vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go
@@ -0,0 +1,23 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package jobs
+
+import (
+ "github.com/mattermost/platform/model"
+)
+
+type DataRetentionInterface interface {
+ MakeWorker() model.Worker
+ MakeScheduler() model.Scheduler
+}
+
+var theDataRetentionInterface DataRetentionInterface
+
+func RegisterDataRetentionInterface(newInterface DataRetentionInterface) {
+ theDataRetentionInterface = newInterface
+}
+
+func GetDataRetentionInterface() DataRetentionInterface {
+ return theDataRetentionInterface
+}