Documentation
¶
Index ¶
Constants ¶
View Source
const ( DownloadStatusPending = "pending" DownloadStatusDownloading = "downloading" DownloadStatusCompleted = "completed" DownloadStatusFailed = "failed" DownloadStatusCancelled = "cancelled" )
View Source
const ( SettingPassphraseHash = "passphrase_hash" SettingPassphraseSalt = "passphrase_salt" SettingEncryptionSalt = "encryption_salt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadEntry ¶
type File ¶
type File struct {
ID string `gorm:"primaryKey"`
DeliveryID string `gorm:"index"`
ProductID string `gorm:"index"`
SourceID string `gorm:"index"`
ExternalID string
FileName string
FileSize int64
ExpectedChecksum string
ChecksumAlgorithm string
DownloadURI string
ReleasedAt *time.Time
Skipped bool `gorm:"default:false"`
CreatedAt time.Time
UpdatedAt time.Time
Delivery Delivery `gorm:"foreignKey:DeliveryID"`
DownloadEntries []DownloadEntry `gorm:"foreignKey:FileID"`
}
type Product ¶
type Product struct {
ID string `gorm:"primaryKey"`
SourceID string `gorm:"index"`
ExternalID string
Name string
Description string
AutoDownload bool `gorm:"default:false"`
CheckWindowStart string
CheckWindowEnd string
LastCheckedAt *time.Time
CreatedAt time.Time
UpdatedAt time.Time
Source Source `gorm:"foreignKey:SourceID"`
Deliveries []Delivery `gorm:"foreignKey:ProductID"`
}
Click to show internal directories.
Click to hide internal directories.