2
0
mirror of synced 2025-02-24 22:58:28 +00:00

24 lines
396 B
Go

package dataBackend
import (
"io"
"os"
)
// 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 = os.ErrNotExist
type File interface {
io.Closer
io.Seeker
io.Writer
io.Reader
}