diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-09-23 00:40:36 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-09-23 00:40:36 -0700 |
| commit | 9fe24991d5b5be0cd3f56cbb65883c67c20fdfe6 (patch) | |
| tree | be465d1ceae0b8968986b09c13cf2ac2dcca5873 /weed/replication/sink/replication_sink.go | |
| parent | 7d6b2a4740c32c3a07a4ce4204da2debee371bcd (diff) | |
| download | seaweedfs-9fe24991d5b5be0cd3f56cbb65883c67c20fdfe6.tar.xz seaweedfs-9fe24991d5b5be0cd3f56cbb65883c67c20fdfe6.zip | |
refactoring
Diffstat (limited to 'weed/replication/sink/replication_sink.go')
| -rw-r--r-- | weed/replication/sink/replication_sink.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/weed/replication/sink/replication_sink.go b/weed/replication/sink/replication_sink.go new file mode 100644 index 000000000..bb4a8aa83 --- /dev/null +++ b/weed/replication/sink/replication_sink.go @@ -0,0 +1,14 @@ +package sink + +import ( + "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" + "github.com/chrislusf/seaweedfs/weed/replication/source" +) + +type ReplicationSink interface { + DeleteEntry(key string, entry *filer_pb.Entry, deleteIncludeChunks bool) error + CreateEntry(key string, entry *filer_pb.Entry) error + UpdateEntry(key string, oldEntry, newEntry *filer_pb.Entry, deleteIncludeChunks bool) error + GetSinkToDirectory() string + SetSourceFiler(s *source.FilerSource) +} |
