mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-27 01:51:56 +08:00
Modify: add general ReaderCloserSeeker interface for handler GET method to return
This commit is contained in:
@@ -10,3 +10,9 @@ type ContentResponse struct {
|
||||
Content io.ReadSeeker
|
||||
URL string
|
||||
}
|
||||
|
||||
// 存储策略适配器返回的文件流,有些策略需要带有Closer
|
||||
type RSCloser interface {
|
||||
io.ReadSeeker
|
||||
io.Closer
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user