updated to v2 api

This commit is contained in:
2025-07-07 09:58:31 -07:00
parent af8a2dbd1e
commit 1200a1bfc2
2 changed files with 25 additions and 16 deletions

View File

@ -11,13 +11,18 @@ type File struct {
Hash string `json:"Hash"`
Size int `json:"Size"`
Custom bool `json:"Custom"`
URL string `json:"URL"`
Origin string `json:"Origin"`
Urls struct {
Digitalocean string `json:"digitalocean"`
Cloudflare string `json:"cloudflare"`
None string `json:"none"`
} `json:"Urls"`
}
type Manifest struct {
Version string `json:"Version"`
Files []File `json:"Files"`
Version string `json:"Version"`
UID string `json:"Uid"`
Files []File `json:"Files"`
CheckedAt string `json:"checked_at"`
}
func getManifest() (*Manifest, error) {