backend.go 266 B

12345678910111213141516171819
  1. package backend
  2. import (
  3. "io"
  4. "time"
  5. )
  6. type DataStorageBackend interface {
  7. io.ReaderAt
  8. io.WriterAt
  9. Truncate(off int64) error
  10. io.Closer
  11. GetStat() (datSize int64, modTime time.Time, err error)
  12. String() string
  13. }
  14. var (
  15. StorageBackends []DataStorageBackend
  16. )