You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
540 B

6 years ago
6 years ago
  1. package sink
  2. import (
  3. "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
  4. "github.com/chrislusf/seaweedfs/weed/replication/source"
  5. )
  6. type ReplicationSink interface {
  7. DeleteEntry(key string, entry *filer_pb.Entry, deleteIncludeChunks bool) error
  8. CreateEntry(key string, entry *filer_pb.Entry) error
  9. UpdateEntry(key string, oldEntry, newEntry, existingEntry *filer_pb.Entry, deleteIncludeChunks bool) error
  10. LookupEntry(key string) (entry *filer_pb.Entry, err error)
  11. GetSinkToDirectory() string
  12. SetSourceFiler(s *source.FilerSource)
  13. }