Documentation
¶
Index ¶
- Constants
- type Book
- func (b Book) GetArticle() string
- func (b *Book) GetItemInfo() ItemInfo
- func (b *Book) GetItemType() ItemType
- func (b Book) GetLastExperience(strings i18n.Translation, timezone string) string
- func (b Book) GetLastExperienceFull(strings i18n.Translation) string
- func (b *Book) SetDescription(description string)
- func (b *Book) SetOnWantList(isOnList bool)
- type Experiences
- type ExperiencesEntry
- type Item
- type ItemInfo
- type ItemType
- type List
- type Readlist
- type ReadlistEntry
- type Source
- type TvQueue
- type TvQueueEntry
- type ValueError
- type Watchlist
- type WatchlistEntry
- type Work
Constants ¶
View Source
const ( ItemTypeBook ItemType = "book" ItemTypeFilm = "film" ItemTypeTvserie = "tvserie" ItemTypeUnkown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶ added in v0.4.0
type Book struct { Id string Uri string Source []Source Cover string Authors []string Year int64 Title string SerieUri string SerieName string PartInSerie string Genres []string Article string Description string IsOnWantList bool Experiences []time.Time }
func (Book) GetArticle ¶ added in v0.4.0
func (*Book) GetItemInfo ¶ added in v0.4.0
func (*Book) GetItemType ¶ added in v0.4.0
func (Book) GetLastExperience ¶ added in v0.4.0
func (b Book) GetLastExperience(strings i18n.Translation, timezone string) string
func (Book) GetLastExperienceFull ¶ added in v0.4.0
func (b Book) GetLastExperienceFull(strings i18n.Translation) string
func (*Book) SetDescription ¶ added in v0.4.0
func (*Book) SetOnWantList ¶ added in v0.4.0
type Experiences ¶
type Experiences struct { List []ExperiencesEntry Page int Pages int Query string }
func (Experiences) NextPage ¶
func (e Experiences) NextPage() int
func (Experiences) PrevPage ¶
func (e Experiences) PrevPage() int
type ExperiencesEntry ¶
func (ExperiencesEntry) FormatDatetime ¶
func (e ExperiencesEntry) FormatDatetime(strings i18n.Translation) string
type ItemInfo ¶
type ItemInfo struct { Cover string Status string Title string YearStart int YearEnd int BasedOn string Genres string Runtime int Collection int Part int Episodes int }
func (ItemInfo) IsUnreleased ¶
type ReadlistEntry ¶ added in v0.4.0
type TvQueueEntry ¶
type TvQueueEntry struct { ItemInfo Id string HasPrevious bool WatchedEpisodes int SkippedEpisodes int }
func (TvQueueEntry) CalculateProgress ¶
func (e TvQueueEntry) CalculateProgress() int
func (TvQueueEntry) GetYears ¶
func (e TvQueueEntry) GetYears() string
type ValueError ¶
type ValueError struct {
Message string
}
func (ValueError) Error ¶
func (e ValueError) Error() string
type Watchlist ¶
type WatchlistEntry ¶
Click to show internal directories.
Click to hide internal directories.