common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NumAllTasks is the number of all tasks
	NumAllTasks int64 = 0
	// NumScheduledTasks is the number of scheduled tasks
	NumScheduledTasks int64 = 0
	// NumDoneTasks is the number of done tasks
	NumDoneTasks int64 = 0
)
View Source
var (
	// PV is the current version object of the program
	PV ProgramVersion
	// Version is the current version of the program
	Version string
	// CommitHash is the current commit hash of the program
	CommitHash string
	// BuildTime is the current build time of the program
	BuildTime string
)
View Source
var Bar *mpb.Bar

Bar is the bar that show the total progress instead of the progress of a single task

View Source
var (
	// HTTPClient is the http client
	HTTPClient *http.Client
)
View Source
var Progress *mpb.Progress

Progress is the progress bar

View Source
var TerminalWidth int

TerminalWidth is the width of the terminal

Functions

This section is empty.

Types

type ProgramVersion

type ProgramVersion struct {
	Version    string `json:"version"`
	CommitHash string `json:"commit_hash"`
	BuildTime  string `json:"build_time"`
}

ProgramVersion is the version object of the program

func (ProgramVersion) Short

func (v ProgramVersion) Short() string

Short returns the short version of the program

func (ProgramVersion) String

func (v ProgramVersion) String() string

String returns the verbose version of the program

Jump to

Keyboard shortcuts

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