progress

package
v2.1.1-integrations Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PBar

type PBar interface {
	Start()
	Close() error
}

PBar is the interface for the types of available progress bars (Circle ,Counter) Start initializes the Progress Bar execution Close stops the Progress Bar execution

type PbBuilder

type PbBuilder struct {
	Silent bool
}

PbBuilder is the struct that contains the progress bar Builders Silent is set to true when all progress bars should be silent

func InitializePbBuilder

func InitializePbBuilder(noProgress, ci, silentFlag bool) *PbBuilder

InitializePbBuilder creates an instace of a PbBuilder

func (*PbBuilder) BuildCircle

func (i *PbBuilder) BuildCircle(label string) PBar

BuildCircle builds and returns a Circle Progress Bar

func (*PbBuilder) BuildCounter

func (i *PbBuilder) BuildCounter(label string, total int, wg *sync.WaitGroup, progressChannel chan int64) PBar

BuildCounter builds and returns a Counter Progress Bar

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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