feat: improve driver

This commit is contained in:
Noah Hsu
2022-06-07 22:02:41 +08:00
parent 0d93a6aa41
commit 677047c80b
9 changed files with 88 additions and 27 deletions

View File

@ -6,9 +6,10 @@ import (
)
type FileInfo interface {
GetSize() uint64
GetName() string
GetModTime() time.Time
GetSize() int64
ModTime() time.Time
IsDir() bool
}
type FileStream interface {
@ -16,3 +17,11 @@ type FileStream interface {
FileInfo
GetMimetype() string
}
type URL interface {
URL() string
}
type Thumbnail interface {
Thumbnail() string
}