| 20 | ) |
| 21 | |
| 22 | type FileStream struct { |
| 23 | Ctx context.Context |
| 24 | model.Obj |
| 25 | io.Reader |
| 26 | Mimetype string |
| 27 | WebPutAsTask bool |
| 28 | ForceStreamUpload bool |
| 29 | Exist model.Obj //the file existed in the destination, we can reuse some info since we wil overwrite it |
| 30 | utils.Closers |
| 31 | size int64 |
| 32 | oriReader io.Reader // the original reader, used for caching |
| 33 | hc *hcache.HybridCache |
| 34 | peek buffer.SizedReadAtSeeker |
| 35 | } |
| 36 | |
| 37 | func (f *FileStream) GetSize() int64 { |
| 38 | if f.size > 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected