grabrr/lib/structs/structs.go

27 lines
613 B
Go

package structs
import (
"net/url"
"time"
)
// File represents a single file within a Bunkkr album.
type File struct {
Title string `json:"title"`
SizeKB float64 `json:"size_kb"`
DateUploaded time.Time `json:"date_uploaded"`
URL url.URL `json:"url"`
Filename string `json:"filename"`
Format string `json:"format"`
}
// Album represents a Bunkkr album.
type Album struct {
Title string `json:"title"`
Views int `json:"views"`
Files []File `json:"files"`
ID string `json:"id"`
URL url.URL `json:"url"`
SizeKB float64 `json:"size_kb"`
}