chore: move some types to model
This commit is contained in:
15
internal/model/stream.go
Normal file
15
internal/model/stream.go
Normal file
@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type FileStream struct {
|
||||
FileInfo
|
||||
io.ReadCloser
|
||||
Mimetype string
|
||||
}
|
||||
|
||||
func (f FileStream) GetMimetype() string {
|
||||
return f.Mimetype
|
||||
}
|
Reference in New Issue
Block a user