progresswriter

package
v1.3.5-alpha0927 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressWriter

type ProgressWriter struct {
	Total uint64
	Count uint64
}

func New

func New(total uint64) *ProgressWriter

func (*ProgressWriter) GetPercent

func (wc *ProgressWriter) GetPercent() float64

func (*ProgressWriter) ShowProgress

func (wc *ProgressWriter) ShowProgress(verbose string, ctx context.Context)

func (*ProgressWriter) Write

func (wc *ProgressWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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