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.

21 lines
305 B

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