progress_bar

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log Log
}

func Initconfig

func Initconfig() (*Config, error)

type Log

type Log struct {
	Level string
	Type  string
	To    string
}

type ProgressBar

type ProgressBar struct {
	// contains filtered or unexported fields
}

func New

func New() *ProgressBar

func (*ProgressBar) AddTracker

func (prb *ProgressBar) AddTracker(fileId int32, totalSize int64)

func (*ProgressBar) IsTracked

func (prb *ProgressBar) IsTracked(fileId int32) bool

func (*ProgressBar) MarkAsDone

func (prb *ProgressBar) MarkAsDone(fileId int32)

func (*ProgressBar) UpdateTracker

func (prb *ProgressBar) UpdateTracker(fileId int32, updateInfo *client.UpdateFile)

Jump to

Keyboard shortcuts

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