MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / FileStream

Struct FileStream

internal/stream/stream.go:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20)
21
22type 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
37func (f *FileStream) GetSize() int64 {
38 if f.size > 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected