aboutsummaryrefslogtreecommitdiff
path: root/weed/replication/sub/notifications.go
blob: 106812b374c4ec1c29ef138cae0170321a0de5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package sub

import (
	"github.com/joeslay/seaweedfs/weed/pb/filer_pb"
	"github.com/joeslay/seaweedfs/weed/util"
)

type NotificationInput interface {
	// GetName gets the name to locate the configuration in sync.toml file
	GetName() string
	// Initialize initializes the file store
	Initialize(configuration util.Configuration) error
	ReceiveMessage() (key string, message *filer_pb.EventNotification, err error)
}

var (
	NotificationInputs []NotificationInput
)