2022-06-06 13:48:53 +00:00
|
|
|
package driver
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type FileInfo interface {
|
2022-06-07 14:02:41 +00:00
|
|
|
GetSize() uint64
|
2022-06-06 13:48:53 +00:00
|
|
|
GetName() string
|
2022-06-07 14:02:41 +00:00
|
|
|
ModTime() time.Time
|
|
|
|
IsDir() bool
|
2022-06-06 13:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type FileStream interface {
|
|
|
|
io.ReadCloser
|
|
|
|
FileInfo
|
|
|
|
GetMimetype() string
|
|
|
|
}
|
2022-06-07 14:02:41 +00:00
|
|
|
|
|
|
|
type URL interface {
|
|
|
|
URL() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Thumbnail interface {
|
|
|
|
Thumbnail() string
|
|
|
|
}
|