Documentation ¶
Index ¶
- type BarPooler
- type Barer
- type CheggaaBar
- func (pb *CheggaaBar) Add(add int64)
- func (pb *CheggaaBar) Finish()
- func (pb *CheggaaBar) GetBar() *CheggaaBar
- func (pb *CheggaaBar) Increment() int64
- func (pb *CheggaaBar) IncrementTotal(add int64)
- func (pb *CheggaaBar) Set(value int)
- func (pb *CheggaaBar) SetTotal(total int64)
- func (pb *CheggaaBar) Start()
- type CheggaaaPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Barer ¶
type Barer interface { Set(value int) SetTotal(total int64) Add(add int64) Increment() int64 IncrementTotal(add int64) GetBar() *CheggaaBar Start() Finish() }
Barer is the interface used to manipulate a progress Bar
type CheggaaBar ¶
type CheggaaBar struct {
Bar *pb.ProgressBar
}
CheggaaBar is a progress Bar implementation
func NewProgressBar ¶
func NewProgressBar(title string) *CheggaaBar
NewProgressBar is the constructor
func (*CheggaaBar) Add ¶
func (pb *CheggaaBar) Add(add int64)
Add allows to increase the current progress
func (*CheggaaBar) GetBar ¶
func (pb *CheggaaBar) GetBar() *CheggaaBar
GetBar returns all the structure
func (*CheggaaBar) Increment ¶
func (pb *CheggaaBar) Increment() int64
Increment allows to increment the current progress
func (*CheggaaBar) IncrementTotal ¶
func (pb *CheggaaBar) IncrementTotal(add int64)
IncrementTotal allows to increase the total progress bar
func (*CheggaaBar) Set ¶
func (pb *CheggaaBar) Set(value int)
Set allows to reset the current progress of the progress bar
func (*CheggaaBar) SetTotal ¶
func (pb *CheggaaBar) SetTotal(total int64)
SetTotal is the total setter
type CheggaaaPool ¶
type CheggaaaPool struct {
// contains filtered or unexported fields
}
CheggaaaPool is a progress Bar pool implementation
func (*CheggaaaPool) Start ¶
func (p *CheggaaaPool) Start() error
Start launch all registered progress bars
Click to show internal directories.
Click to hide internal directories.