progress

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgNutsDB
	ErrorParamMissing
	ErrorParamMismatching
	ErrorBarNotInitialized
)

Variables

This section is empty.

Functions

func GetDefaultMessageDone

func GetDefaultMessageDone() string

func GetDefaultStyle

func GetDefaultStyle() string

func SetDefaultMessageDone

func SetDefaultMessageDone(message string)

func SetDefaultStyle

func SetDefaultStyle(style string)

Types

type Bar

type Bar interface {
	libsem.SemBar

	DropOnDefer(flag bool)
	GetBarMPB() *libmpb.Bar
}

type ProgressBar

type ProgressBar interface {
	libsem.Sem

	GetMPB() *libmpb.Progress
	SetMaxThread(maxSimultaneous int)
	SetContext(ctx context.Context)

	MainProcessInit()

	NewBar(total int64, options ...libmpb.BarOption) Bar

	NewBarETA(name string, total int64, job string, parent Bar) Bar
	NewBarCounter(name string, total int64, job string, parent Bar) Bar
	NewBarKBits(name string, total int64, job string, parent Bar) Bar

	NewBarSimpleETA(name string, total int64) Bar
	NewBarSimpleCounter(name string, total int64) Bar
	NewBarSimpleKBits(name string, total int64) Bar
}

func NewProgressBar

func NewProgressBar(options ...libmpb.ContainerOption) ProgressBar

func NewProgressBarWithContext added in v1.3.0

func NewProgressBarWithContext(ctx context.Context, options ...libmpb.ContainerOption) ProgressBar

Jump to

Keyboard shortcuts

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