feat: basic structure
This commit is contained in:
18
internal/driver/file.go
Normal file
18
internal/driver/file.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user