seaweedfs/weed/replication/sink/replication_sink.go

16 lines
540 B
Go
Raw Normal View History

2018-09-23 07:40:36 +00:00
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, existingEntry *filer_pb.Entry, deleteIncludeChunks bool) error
LookupEntry(key string) (entry *filer_pb.Entry, err error)
2018-09-23 07:40:36 +00:00
GetSinkToDirectory() string
SetSourceFiler(s *source.FilerSource)
}