2018-10-31 08:11:19 +00:00
|
|
|
package sub
|
2018-09-17 07:27:56 +00:00
|
|
|
|
|
|
|
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
|
2020-01-29 17:09:55 +00:00
|
|
|
Initialize(configuration util.Configuration, prefix string) error
|
2021-01-26 19:08:44 +00:00
|
|
|
ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)
|
2018-09-17 07:27:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
NotificationInputs []NotificationInput
|
|
|
|
)
|