feat: basic structure

This commit is contained in:
Noah Hsu
2022-06-06 21:48:53 +08:00
parent b76060570e
commit fced60c2b5
21 changed files with 520 additions and 4 deletions

18
internal/driver/file.go Normal file
View File

@ -0,0 +1,18 @@
package driver
import (
"io"
"time"
)
type FileInfo interface {
GetName() string
GetModTime() time.Time
GetSize() int64
}
type FileStream interface {
io.ReadCloser
FileInfo
GetMimetype() string
}