Implements cahcing of album description and cover

This commit is contained in:
2016-01-17 18:45:36 +01:00
parent 105961a466
commit b58b7e7e6a
3 changed files with 304 additions and 16 deletions

View File

@@ -115,22 +115,23 @@ func (a *Album) GetBedethequeComURI() string {
a.ID)
}
// A Link represent a link to a ressource
type Link struct {
// Title of the link
Title string
// Target of the link
Target string
}
// An AlbumDescription is a more complete BD description
//
// It holds data that can be fetched from bedetheque.com
type AlbumDescription struct {
Album *Album
HasCover bool
CoverExt string
Description string
Note float64
Scenarist string
Designer string
Colorist string
Cycle string
Format string
Pages int32
Created time.Time
Scenarist []Link
Designer []Link
Colorist []Link
}