Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressMessage ¶
type ProgressMessage struct {
Type string `json:"type"`
Phase string `json:"phase"`
Message string `json:"message"`
Elapsed float64 `json:"elapsed"`
Progress float64 `json:"progress,omitempty"` // 0-100 percentage
Current int `json:"current,omitempty"` // Current item count
Total int `json:"total,omitempty"` // Total item count
ETA float64 `json:"eta,omitempty"` // Estimated seconds remaining
Throughput float64 `json:"throughput,omitempty"` // Items per second
}
ProgressMessage represents a progress update in JSON format
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter provides progress reporting functionality for long-running operations
func NewJSONReporter ¶
NewJSONReporter creates a new progress reporter with JSON output
func NewReporter ¶
NewReporter creates a new progress reporter
func (*Reporter) SetTotal ¶ added in v0.9.2
SetTotal sets the total number of items to process (for percentage/ETA calculation)
func (*Reporter) UpdateProgress ¶ added in v0.9.2
UpdateProgress reports progress with a specific count (increments current)
func (*Reporter) UpdateWithCount ¶ added in v0.9.2
UpdateWithCount reports progress with an explicit current count
Click to show internal directories.
Click to hide internal directories.