alist/internal/model/obj.go

33 lines
358 B
Go
Raw Normal View History

2022-06-15 12:41:17 +00:00
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
}
2022-06-16 12:25:33 +00:00
type SetID interface {
SetID(id string)
}