alist/internal/model/ifile.go
2022-06-15 18:06:42 +08:00

28 lines
308 B
Go

package model
import (
"io"
"time"
)
type FileInfo interface {
GetSize() uint64
GetName() string
ModTime() time.Time
IsDir() bool
}
type FileStreamer interface {
io.ReadCloser
FileInfo
GetMimetype() string
}
type URL interface {
URL() string
}
type Thumbnail interface {
Thumbnail() string
}