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