Modify: add general ReaderCloserSeeker interface for handler GET method to return

This commit is contained in:
HFO4
2019-12-13 20:54:28 +08:00
parent f262caf1f5
commit 03dcd9a9e0
6 changed files with 19 additions and 25 deletions

View File

@@ -10,3 +10,9 @@ type ContentResponse struct {
Content io.ReadSeeker
URL string
}
// 存储策略适配器返回的文件流有些策略需要带有Closer
type RSCloser interface {
io.ReadSeeker
io.Closer
}