diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-09-17 00:27:56 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-09-17 00:27:56 -0700 |
| commit | 788acdf5275dfb7610afe9144c17d9128d1737f6 (patch) | |
| tree | 55e6701210157981eecd8a4f72d8c9eefa01c457 /weed/replication/notifications.go | |
| parent | 865a0179369601e496d385e47bdbda93dcc3f243 (diff) | |
| download | seaweedfs-788acdf5275dfb7610afe9144c17d9128d1737f6.tar.xz seaweedfs-788acdf5275dfb7610afe9144c17d9128d1737f6.zip | |
add WIP filer.replicate
Diffstat (limited to 'weed/replication/notifications.go')
| -rw-r--r-- | weed/replication/notifications.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/weed/replication/notifications.go b/weed/replication/notifications.go new file mode 100644 index 000000000..ff40c3aad --- /dev/null +++ b/weed/replication/notifications.go @@ -0,0 +1,18 @@ +package replication + +import ( + "github.com/chrislusf/seaweedfs/weed/util" + "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" +) + +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 +) |
