leveldb2: support subscribing from peers

This commit is contained in:
Chris Lu
2020-07-12 22:13:40 -07:00
parent 138f176fd3
commit 5ba894bb72
5 changed files with 125 additions and 4 deletions

View File

@@ -29,6 +29,11 @@ type FilerStore interface {
Shutdown()
}
type FilerLocalStore interface {
UpdateOffset(filer string, lastTsNs int64) error
ReadOffset(filer string) (lastTsNs int64, err error)
}
type FilerStoreWrapper struct {
actualStore FilerStore
}