Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetProgressInput ¶
type GetProgressInput struct {
ProgressID
}
Get progress is the input for the GetProgress method
func (*GetProgressInput) Validate ¶
func (a *GetProgressInput) Validate() error
type Progress ¶
type Progress struct {
ProgressID `json:"id"`
// Success is the number of items that succeeded
Success uint64 `json:"success"`
// Failed is the number of items that failed
Failed uint64 `json:"failed"`
// The total number of items to process
Total uint64 `json:"total"`
// The time the progress was last updated
UpdatedAt time.Time `json:"updatedAt"`
}
Progress represents the tracking details of an operation
type ProgressID ¶
type ProgressID struct {
models.NamespacedModel `json:"namespace,inline"`
ID string
}
ProgressID is the identifier for a progress
func (*ProgressID) Validate ¶
func (a *ProgressID) Validate() error
type UpsertProgressInput ¶
type UpsertProgressInput struct {
Progress
}
UpsertProgressInput is the input for the UpsertProgress method
func (*UpsertProgressInput) Validate ¶
func (a *UpsertProgressInput) Validate() error
Click to show internal directories.
Click to hide internal directories.