Initial Commit
This commit is contained in:
5
lib/bunkr/bunkr.go
Normal file
5
lib/bunkr/bunkr.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package lib
|
||||
|
||||
func GetBunkrAlbum() {
|
||||
|
||||
}
|
||||
26
lib/structs/structs.go
Normal file
26
lib/structs/structs.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user