mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 03:15:10 +08:00
29 lines
314 B
Go
29 lines
314 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import (
|
||
|
|
"io"
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Obj interface {
|
||
|
|
GetSize() uint64
|
||
|
|
GetName() string
|
||
|
|
ModTime() time.Time
|
||
|
|
IsDir() bool
|
||
|
|
GetID() string
|
||
|
|
}
|
||
|
|
|
||
|
|
type FileStreamer interface {
|
||
|
|
io.ReadCloser
|
||
|
|
Obj
|
||
|
|
GetMimetype() string
|
||
|
|
}
|
||
|
|
|
||
|
|
type URL interface {
|
||
|
|
URL() string
|
||
|
|
}
|
||
|
|
|
||
|
|
type Thumbnail interface {
|
||
|
|
Thumbnail() string
|
||
|
|
}
|