Documentation
¶
Index ¶
Constants ¶
View Source
const ( DownloadingStatus = "Downloading" DownloadingColor = "#FF6600" MergingStatus = "Merging" MergingColor = "#FFCC66" CompleteStatus = "Complete" CompleteColor = "#00FF00" ErrStatus = "Error" ErrColor = "#CC0000" RetryStatus = "Retry" RetryColor = "#CC66CC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Mux sync.Mutex // protect fields below
Pbs map[string]*ProgressBar
// contains filtered or unexported fields
}
func (*Model) AddPb ¶ added in v0.3.0
func (m *Model) AddPb(pb *ProgressBar)
type ProgressBar ¶
type ProgressBar struct {
Pw *ProgressWriter
Pc *ProgressCounter
Progress progress.Model
FileName string
Status string
}
type ProgressCompleteMsg ¶ added in v0.3.1
type ProgressCompleteMsg struct{}
type ProgressCounter ¶ added in v0.3.0
type ProgressCounter struct {
Total int64
Downloaded atomic.Int64
FileName string
Onprogress func(string, float64)
}
func (*ProgressCounter) Increase ¶ added in v0.3.0
func (pc *ProgressCounter) Increase()
type ProgressErrMsg ¶
type ProgressErrMsg struct{ Err error }
type ProgressMsg ¶
type ProgressStatusMsg ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.