MCPcopy
hub / github.com/minio/minio-go / newHook

Function newHook

hook-reader.go:85–93  ·  view source on GitHub ↗

newHook returns a io.ReadSeeker which implements hookReader that reports the data read from the source to the hook.

(source, hook io.Reader)

Source from the content-addressed store, hash-verified

83// newHook returns a io.ReadSeeker which implements hookReader that
84// reports the data read from the source to the hook.
85func newHook(source, hook io.Reader) io.Reader {
86 if hook == nil {
87 return &hookReader{source: source}
88 }
89 return &hookReader{
90 source: source,
91 hook: hook,
92 }
93}

Calls

no outgoing calls

Tested by

no test coverage detected