types

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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() *sdkmpb.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 {
	context.Context

	NewWorker() error
	NewWorkerTry() bool

	DeferWorker()
	DeferMain()

	WaitAll() error

	Weighted() int64

	New() Sem
}

type SemBar

type SemBar interface {
	Sem
	Bar
}

type SemPgb

type SemPgb interface {
	Sem
	ProgressMPB
}

Jump to

Keyboard shortcuts

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