Versions in this module Expand all Collapse all v0 v0.4.0 Nov 25, 2020 Changes in this version + func GetReadlist(username, filter string, page int) (datastructure.Readlist, error) + func GetWantlistUris() ([]string, error) + func WatchWholeSerie(username, itemId string, episodes []string, itemType datastructure.ItemType, ...) (int, error) v0.3.0 May 23, 2020 Changes in this version + func AddToExperiences(username, itemId string, itemType datastructure.ItemType, datetime time.Time) (int, error) + func AddToWantList(username, itemId string, itemType datastructure.ItemType) error + func CleanCache() error + func CleanItemCache() error + func ClearSessions(username string) error + func ClearSpecials(username, itemId string, episodes []string, itemType datastructure.ItemType) error + func GetCacheItem(itemType datastructure.ItemType, itemId string) (*datastructure.ItemInfo, error) + func GetItemExperiences(username, itemId string, itemType datastructure.ItemType) (map[string][]time.Time, error) + func GetTvQueue(username, filter string, page int) (datastructure.TvQueue, error) + func GetUserExperiences(username, filter string, page int) (datastructure.Experiences, error) + func GetWatchlist(username, filter string, page int) (datastructure.Watchlist, error) + func InsertUser(username, password, sfaSecret, recoveryCodes string) error + func IsOnWantList(username, itemId string, itemType datastructure.ItemType) (bool, error) + func MakeAdmin(username string) error + func Migrate() error + func RemoveCacheItem(itemType datastructure.ItemType, itemId string) error + func RemoveFromWantList(username, itemId string, itemType datastructure.ItemType) error + func RemoveSession(username, token string) error + func SaveCacheEntry(uri, etag string, data []byte) error + func SaveCacheItem(itemType datastructure.ItemType, itemId string, ...) error + func SkipSpecials(username, itemId string, episodes []string, itemType datastructure.ItemType) (int, error) + func UpdateCacheItem(itemType datastructure.ItemType, itemId string, ...) error + func UpdateRecoveryCodes(username, recoveryCodes string) error + type CacheEntry struct + Data []byte + Etag string + func GetCacheEntry(uri string) (*CacheEntry, error) + type EmptyError struct + func (e EmptyError) Error() string + type Session struct + Expiry time.Time + Id string + IsLong bool + Username string + func CreateSession(username string, long bool) (Session, error) + func GetSession(token string) (*Session, error) + type User struct + Avatar []byte + AvatarSmall []byte + IsAdmin bool + PasswordHash string + RecoveryCodes string + Sfa string + Timezone string + Username string + func GetUser(username string) (*User, error)