mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-29 08:22:34 +08:00
22 lines
305 B
Go
22 lines
305 B
Go
package backend
|
|
|
|
import (
|
|
"io"
|
|
"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
|
|
Instantiate(src *os.File) error
|
|
}
|
|
|
|
var (
|
|
StorageBackends []DataStorageBackend
|
|
)
|