seaweedfs/weed/storage/backend/backend.go

22 lines
305 B
Go
Raw Normal View History

package backend
import (
"io"
2019-11-27 11:09:42 +00:00
"os"
"time"
)
type DataStorageBackend interface {
io.ReaderAt
io.WriterAt
Truncate(off int64) error
io.Closer
GetStat() (datSize int64, modTime time.Time, err error)
String() string
2019-11-27 11:09:42 +00:00
Instantiate(src *os.File) error
}
2019-11-19 03:24:34 +00:00
var (
StorageBackends []DataStorageBackend
)