entity

package
v1.0.0-beta.208 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (*Progress) Validate

func (a *Progress) Validate() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL