Documentation ¶
Overview ¶
Package demozoo interacts with the demozoo.org API for data scraping and file downloads.
Index ¶
- Variables
- func Fix() error
- func RefreshMeta() error
- type Category
- type Fetched
- type Record
- func (r *Record) DoseeMeta() error
- func (r *Record) Download(overwrite bool, api *prods.ProductionsAPIv1, st Stat) (skip bool)
- func (r *Record) FileMeta() error
- func (r *Record) SQL() (query string, args []interface{})
- func (r *Record) Save() error
- func (r *Record) String(total int) string
- func (r *Record) ZipContent() (ok bool, err error)
- type Records
- type Request
- type Stat
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RefreshMeta ¶
func RefreshMeta() error
RefreshMeta synchronises missing file entries with Demozoo sourced metadata.
Types ¶
type Fetched ¶
type Fetched struct { Code int Status string API prods.ProductionsAPIv1 }
Fetched production.
type Record ¶
type Record struct { Count int FilePath string // absolute path to file ID string // MySQL auto increment id UUID string // record unique id Filename string Filesize string FileZipContent string CreatedAt string UpdatedAt string SumMD5 string // file download MD5 hash Sum384 string // file download SHA384 hash Readme string DOSeeBinary string Platform string GroupFor string GroupBy string Title string Section string CreditText []string CreditCode []string CreditArt []string CreditAudio []string WebIDDemozoo uint // demozoo production id WebIDPouet uint LastMod time.Time // file download last modified time }
Record of a file item.
func (*Record) ZipContent ¶ added in v1.4.0
ZipContent reads an archive and saves its content to the database.
type Request ¶
type Request struct { All bool // Parse all demozoo entries. Overwrite bool // Overwrite any existing files. Refresh bool // Refresh all demozoo entries. Simulate bool // Simulate database save. ByID string // Filter by ID. }
Request Demozoo entries.
type Stat ¶ added in v1.4.0
Stat are the remote query statistics.
func (*Stat) NextRefresh ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.