grabrr/lib/strux/structs.go

27 lines
619 B
Go
Raw Normal View History

2025-07-22 15:09:48 +03:00
package structs
import (
"net/url"
"time"
)
// File represents a single file within a Bunkkr album.
type File struct {
Title string `json:"title"`
2025-07-23 15:08:33 +03:00
SizeKB int64 `json:"size_kb"`
2025-07-22 15:09:48 +03:00
DateUploaded time.Time `json:"date_uploaded"`
2025-07-23 15:08:33 +03:00
URL *url.URL `json:"url"`
2025-07-22 15:09:48 +03:00
Filename string `json:"filename"`
Format string `json:"format"`
}
// Album represents a Bunkkr album.
type Album struct {
2025-07-23 15:08:33 +03:00
Title string `json:"title"`
Views int `json:"views"`
Files []File `json:"files"`
ID string `json:"id"`
URL *url.URL `json:"url"`
SizeKB int64 `json:"size_kb"`
2025-07-22 15:09:48 +03:00
}