MCPcopy Create free account
hub / github.com/imroc/req / callbackWriter

Struct callbackWriter

middleware.go:356–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356type callbackWriter struct {
357 io.Writer
358 written int64
359 totalSize int64
360 lastTime time.Time
361 interval time.Duration
362 callback func(written int64)
363}
364
365func (w *callbackWriter) Write(p []byte) (n int, err error) {
366 n, err = w.Writer.Write(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected