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.
| 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. |
| 304 | type StatusReceiver struct { |
| 305 | Sr blobserver.StatReceiver |
| 306 | Path string |
| 307 | } |
| 308 | |
| 309 | func (asr StatusReceiver) noteChunkOnServer(sb blob.SizedRef) { |
| 310 | Printf("CHUNK_UPLOADED %d %s %s\n", sb.Size, sb.Ref, asr.Path) |
nothing calls this directly
no outgoing calls
no test coverage detected