Documentation
¶
Overview ¶
Package backupprogress carries where a running copy is, from the engine that copies to whoever follows it.
The callback rides on the context so the copy interfaces stay as they are: an engine that finds one reports to it, and one that does not costs nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stats ¶
type Stats struct {
Bytes int64 `json:"bytes"`
// TotalBytes zero means the engine is still taking stock.
TotalBytes int64 `json:"total_bytes,omitempty"`
Files int64 `json:"files"`
TotalFiles int64 `json:"total_files,omitempty"`
// Speed is in bytes a second.
Speed int64 `json:"speed,omitempty"`
// ETA is in seconds; nil when the engine cannot tell.
ETA *int64 `json:"eta,omitempty"`
Current string `json:"current,omitempty"`
}
Stats is how far one copy has got, as its engine counts.
Click to show internal directories.
Click to hide internal directories.