njs_progress

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultMessageDone added in v1.1.0

func GetDefaultMessageDone() string

func GetDefaultStyle added in v1.1.0

func GetDefaultStyle() string

func SetDefaultMessageDone

func SetDefaultMessageDone(message string)

func SetDefaultStyle

func SetDefaultStyle(style string)

Types

type Bar

type Bar interface {
	Current() int64
	Completed() bool
	Increment(n int)
	Refill(amount int64)

	NewWorker() error
	NewWorkerTry() bool
	DeferWorker()
	DeferMain(dropBar bool)

	WaitAll() error
	Context() context.Context
	Cancel()

	GetBarMPB() *mpb.Bar
}

type ProgressBar

type ProgressBar interface {
	GetMPB() *mpb.Progress

	SetSemaphoreOption(maxSimultaneous int, timeout time.Duration)

	NewBar(parent context.Context, total int64, options ...mpb.BarOption) Bar
	NewBarSimpleETA(name string) Bar
	NewBarSimpleCounter(name string, total int64) Bar
}

func NewProgressBar

func NewProgressBar(timeout time.Duration, deadline time.Time, parent context.Context, options ...mpb.ContainerOption) ProgressBar

Jump to

Keyboard shortcuts

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