Add Load() for all existing backends

This commit is contained in:
Alexander Neumann
2016-01-23 14:12:12 +01:00
parent 8b7bf8691d
commit 0a24261afb
5 changed files with 84 additions and 0 deletions
+4
View File
@@ -56,6 +56,10 @@ type Backend interface {
Close() error
Lister
// Load returns the data stored in the backend for h at the given offset
// and saves it in p. Load has the same semantics as io.ReaderAt.
Load(h Handle, p []byte, off int64) (int, error)
}
// Lister implements listing data items stored in a backend.