mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-07 11:14:32 +08:00
28 lines
307 B
Go
28 lines
307 B
Go
package driver
|
|
|
|
import (
|
|
"io"
|
|
"time"
|
|
)
|
|
|
|
type FileInfo interface {
|
|
GetSize() uint64
|
|
GetName() string
|
|
ModTime() time.Time
|
|
IsDir() bool
|
|
}
|
|
|
|
type FileStream interface {
|
|
io.ReadCloser
|
|
FileInfo
|
|
GetMimetype() string
|
|
}
|
|
|
|
type URL interface {
|
|
URL() string
|
|
}
|
|
|
|
type Thumbnail interface {
|
|
Thumbnail() string
|
|
}
|