seaweedfs/weed/replication/sub/notifications.go
2019-09-02 11:28:40 +01:00

19 lines
465 B
Go

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
)