Files
Reims-Go/internal/host/progress.go
T

22 lines
515 B
Go

// Task progress types shared by host services and engine adapters.
package host
type Kind string
const (
KindStep Kind = "step"
KindProgress Kind = "progress"
KindNote Kind = "note"
)
type Update struct {
Kind Kind `json:"kind"`
Message string `json:"message,omitempty"`
Step string `json:"step,omitempty"`
Done int64 `json:"done"`
Total int64 `json:"total"`
Percent float64 `json:"percent"`
}
const WaitingNote = "waiting for another download of a macOS installer to end"