summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/jobs/data_retention.go
blob: 442f667fa50b65d2aef1b6adc4a980609168169e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}