MCPcopy
hub / github.com/perkeep/perkeep / StatusReceiver

Struct StatusReceiver

pkg/client/android/androidx.go:304–307  ·  view source on GitHub ↗

StatusReceiver is a blobserver.StatReceiver wrapper that reports the full filename path and size of uploaded blobs. The android app wrapping pk-put watches stdout for this, for progress bars.

Source from the content-addressed store, hash-verified

302// reports the full filename path and size of uploaded blobs.
303// The android app wrapping pk-put watches stdout for this, for progress bars.
304type StatusReceiver struct {
305 Sr blobserver.StatReceiver
306 Path string
307}
308
309func (asr StatusReceiver) noteChunkOnServer(sb blob.SizedRef) {
310 Printf("CHUNK_UPLOADED %d %s %s\n", sb.Size, sb.Ref, asr.Path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected