seaweedfs/weed/replication/notifications.go

19 lines
477 B
Go
Raw Normal View History

2018-09-17 07:27:56 +00:00
package replication
import (
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
2018-09-21 08:56:43 +00:00
"github.com/chrislusf/seaweedfs/weed/util"
2018-09-17 07:27:56 +00:00
)
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
)