progresstracking

package
v1.66.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package progresstracking provides wrappers around io.Reader and io.Writer that track progress.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(r io.Reader, interval time.Duration, onProgress func(totalRead int, err error)) io.Reader

NewReader wraps the given Reader with a progress tracking Reader that reports progress at the following points:

- First read - Every read spaced at least interval since the prior read - Last read

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL