You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
266 B

5 years ago
  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. )