Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProgressReader ¶ added in v1.10.0
type ProgressReader struct {
util.CountingReader
// contains filtered or unexported fields
}
ProgressReader is a counting reader that reports progress to prometheus.
func NewProgressReader ¶ added in v1.10.0
func NewProgressReader(r io.ReadCloser, total uint64, progress *prometheus.CounterVec, ownerUID string) *ProgressReader
NewProgressReader creates a new instance of a prometheus updating progress reader.
func (*ProgressReader) StartTimedUpdate ¶ added in v1.10.0
func (r *ProgressReader) StartTimedUpdate()
StartTimedUpdate starts the update timer to automatically update every second.
Source Files
¶
- prometheus.go
Click to show internal directories.
Click to hide internal directories.