Documentation ¶
Index ¶
- 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 GetReadlist(username, filter string, page int) (datastructure.Readlist, error)
- func GetTvQueue(username, filter string, page int) (datastructure.TvQueue, error)
- func GetUserExperiences(username, filter string, page int) (datastructure.Experiences, error)
- func GetWantlistUris() ([]string, 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 UpdateCacheItem(itemType datastructure.ItemType, itemId string, ...) error
- func UpdateRecoveryCodes(username, recoveryCodes string) error
- func WatchWholeSerie(username, itemId string, episodes []string, itemType datastructure.ItemType, ...) (int, error)
- type CacheEntry
- type EmptyError
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToExperiences ¶
func AddToWantList ¶
func AddToWantList(username, itemId string, itemType datastructure.ItemType) error
func CleanCache ¶
func CleanCache() error
func CleanItemCache ¶
func CleanItemCache() error
func ClearSessions ¶
func ClearSpecials ¶
func ClearSpecials(username, itemId string, episodes []string, itemType datastructure.ItemType) error
func GetCacheItem ¶
func GetCacheItem(itemType datastructure.ItemType, itemId string) (*datastructure.ItemInfo, error)
func GetItemExperiences ¶
func GetReadlist ¶ added in v0.4.0
func GetReadlist(username, filter string, page int) (datastructure.Readlist, error)
func GetTvQueue ¶
func GetTvQueue(username, filter string, page int) (datastructure.TvQueue, error)
func GetUserExperiences ¶
func GetUserExperiences(username, filter string, page int) (datastructure.Experiences, error)
func GetWantlistUris ¶ added in v0.4.0
func GetWatchlist ¶
func GetWatchlist(username, filter string, page int) (datastructure.Watchlist, error)
func InsertUser ¶
func IsOnWantList ¶
func IsOnWantList(username, itemId string, itemType datastructure.ItemType) (bool, error)
func RemoveCacheItem ¶
func RemoveCacheItem(itemType datastructure.ItemType, itemId string) error
func RemoveFromWantList ¶
func RemoveFromWantList(username, itemId string, itemType datastructure.ItemType) error
func RemoveSession ¶
func SaveCacheEntry ¶
func SaveCacheItem ¶
func SaveCacheItem(itemType datastructure.ItemType, itemId string, itemInfo datastructure.ItemInfo, refs int) error
func UpdateCacheItem ¶
func UpdateCacheItem(itemType datastructure.ItemType, itemId string, itemInfo datastructure.ItemInfo) error
func UpdateRecoveryCodes ¶
func WatchWholeSerie ¶ added in v0.4.0
Types ¶
type CacheEntry ¶
func GetCacheEntry ¶
func GetCacheEntry(uri string) (*CacheEntry, error)
type EmptyError ¶
type EmptyError struct {
// contains filtered or unexported fields
}
func (EmptyError) Error ¶
func (e EmptyError) Error() string
type Session ¶
func GetSession ¶
Click to show internal directories.
Click to hide internal directories.