seaweedfs/weed/storage/backend/backend.go

20 lines
266 B
Go
Raw Normal View History

package backend
import (
"io"
"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-19 03:24:34 +00:00
var (
StorageBackends []DataStorageBackend
)