mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-08-26 19:50:49 +02:00
19 lines
524 B
Go
19 lines
524 B
Go
package sub
|
|
|
|
import (
|
|
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
|
|
"github.com/seaweedfs/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, prefix string) error
|
|
ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error)
|
|
}
|
|
|
|
var (
|
|
NotificationInputs []NotificationInput
|
|
)
|