diff options
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) +} |
