Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Callback ¶
Callback is a function that provides progress information copying from a Reader to a Writer
func BarCallback ¶
BarCallback returns a progress bar callback unless e.g. --quiet or lower loglevel is set
type DownloadBar ¶
type DownloadBar struct {
// contains filtered or unexported fields
}
DownloadBar is a progress bar that implements the scs-library-client ProgressBar interface.
func (*DownloadBar) Abort ¶
func (dpb *DownloadBar) Abort(drop bool)
func (*DownloadBar) IncrBy ¶
func (dpb *DownloadBar) IncrBy(n int)
func (*DownloadBar) Init ¶
func (dpb *DownloadBar) Init(contentLength int64)
func (*DownloadBar) ProxyReader ¶
func (dpb *DownloadBar) ProxyReader(r io.Reader) io.ReadCloser
func (*DownloadBar) Wait ¶
func (dpb *DownloadBar) Wait()
type RoundTripper ¶
type RoundTripper struct {
// contains filtered or unexported fields
}
func NewRoundTripper ¶
func NewRoundTripper(inner http.RoundTripper, pb *DownloadBar) *RoundTripper
Click to show internal directories.
Click to hide internal directories.