mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-05 19:22:46 +02:00
19 lines
266 B
Go
19 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
|
|
)
|