123456789101112131415161718 |
- package sub
- import (
- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
- "github.com/chrislusf/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
- )
|