2
0
mirror of synced 2025-02-25 07:05:38 +00:00
2015-10-23 12:45:11 +11:00

24 lines
409 B
Go

package dataBackend
import (
"errors"
"io"
)
// All functions must return ErrNotFound as required.
type I interface {
GetLength(path string) (int64, error)
Open(path string, flags int) (File, error)
OpenSection(path string, off, n int64) (io.ReadCloser, error)
Delete(path string) error
}
var ErrNotFound = errors.New("not found")
type File interface {
io.Closer
io.Seeker
io.Writer
io.Reader
}