mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-21 02:54:26 +08:00
16 lines
219 B
Go
16 lines
219 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
|
||
|
|
}
|