types

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar interface {
	Inc(n int)
	Dec(n int)

	Inc64(n int64)
	Dec64(n int64)

	Reset(tot, current int64)
	Complete()

	Completed() bool
	Current() int64
	Total() int64
}

type BarMPB

type BarMPB interface {
	GetMPB() *mpb.Bar
}

type Progress

type Progress interface {
	BarBytes(name, job string, tot int64, drop bool, bar SemBar) SemBar
	BarTime(name, job string, tot int64, drop bool, bar SemBar) SemBar
	BarNumber(name, job string, tot int64, drop bool, bar SemBar) SemBar
	BarOpts(tot int64, drop bool, opts ...sdkmpb.BarOption) SemBar
}

type ProgressMPB

type ProgressMPB interface {
	GetMPB() *sdkmpb.Progress
}

type Sem

type Sem interface {
	NewWorker() error
	NewWorkerTry() bool

	DeferWorker()
	DeferMain()

	WaitAll() error

	Wheigted() int64
}

type SemBar

type SemBar interface {
	context.Context
	Sem
	Bar
}

type SemPgb

type SemPgb interface {
	context.Context
	Sem
	ProgressMPB
}

Jump to

Keyboard shortcuts

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