MCPcopy Create free account
hub / github.com/devld/go-drive / wrapContentReader

Function wrapContentReader

drive/script/utils.go:352–354  ·  view source on GitHub ↗

wrapContentReader adapts an io.ReadCloser (already detached from the VM, so the caller owns closing it) into an IContentReader for thumbnail responses.

(rc io.ReadCloser)

Source from the content-addressed store, hash-verified

350// wrapContentReader adapts an io.ReadCloser (already detached from the VM, so
351// the caller owns closing it) into an IContentReader for thumbnail responses.
352func wrapContentReader(rc io.ReadCloser) types.IContentReader {
353 return readCloserContentReader{rc}
354}
355
356type readCloserContentReader struct {
357 rc io.ReadCloser

Callers 1

ThumbnailMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected