mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
20 lines
266 B
Go
20 lines
266 B
Go
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
|
|
}
|
|
|
|
var (
|
|
StorageBackends []DataStorageBackend
|
|
)
|