Documentation ¶
Index ¶
- Variables
- type MissingItem
- type Store
- func (s *Store) AddDownloads(dls ...*mangadex.Download) error
- func (s *Store) AddSeries(series manga.Series, entries []manga.Entry) error
- func (s *Store) AddUser(u human.User, overwrite bool) error
- func (s *Store) ChangePassword(uid, password string) error
- func (s *Store) ChangeType(uid string, t human.Type) error
- func (s *Store) ChangeUsername(currentUID, newName string) error
- func (s *Store) Close() error
- func (s *Store) DeleteAllDownloads() error
- func (s *Store) DeleteEntryCustomCover(sid, eid string) error
- func (s *Store) DeleteMissingItems() error
- func (s *Store) DeleteSeries(sid string) error
- func (s *Store) DeleteSeriesCustomCover(sid string) error
- func (s *Store) DeleteSubscription(sid string) error
- func (s *Store) DeleteSuccessfulDownloads() error
- func (s *Store) DeleteUser(uid string) error
- func (s *Store) Dump() (string, error)
- func (s *Store) GenerateThumbnails(overwrite bool) error
- func (s *Store) GetAllDownloads() ([]*mangadex.Download, error)
- func (s *Store) GetAllSubscriptions() ([]manga.Subscription, error)
- func (s *Store) GetAllTags() (*manga.Tags, error)
- func (s *Store) GetCatalog() ([]manga.Series, error)
- func (s *Store) GetCatalogProgress(uid string) (human.CatalogProgress, error)
- func (s *Store) GetEntries(sid string) ([]manga.Entry, error)
- func (s *Store) GetEntry(sid, eid string) (manga.Entry, error)
- func (s *Store) GetEntryCover(sid, eid string) ([]byte, image.Type, error)
- func (s *Store) GetEntryCoverType(sid, eid string) (image.Type, error)
- func (s *Store) GetEntryProgress(sid, eid, uid string) (human.EntryProgress, error)
- func (s *Store) GetEntryThumbnail(sid, eid string) ([]byte, image.Type, error)
- func (s *Store) GetFailedDownloads() ([]*mangadex.Download, error)
- func (s *Store) GetMissingItems() ([]MissingItem, error)
- func (s *Store) GetPage(sid, eid string, page int, zeroBased bool) (io.Reader, int64, image.Type, error)
- func (s *Store) GetSeries(sid string) (manga.Series, error)
- func (s *Store) GetSeriesCover(sid string) ([]byte, image.Type, error)
- func (s *Store) GetSeriesProgress(sid, uid string) (human.SeriesProgress, error)
- func (s *Store) GetSeriesThumbnail(sid string) ([]byte, image.Type, error)
- func (s *Store) GetSeriesWithTag(t string) ([]manga.Series, error)
- func (s *Store) GetSubscription(sid string) (manga.Subscription, error)
- func (s *Store) GetUser(uid string) (human.User, error)
- func (s *Store) GetUsers() ([]human.User, error)
- func (s *Store) HasEntry(sid, eid string) (bool, error)
- func (s *Store) HasSeries(sid string) (bool, error)
- func (s *Store) HasUser(uid string) (bool, error)
- func (s *Store) HasUsers() (bool, error)
- func (s *Store) IsAdmin(uid string) bool
- func (s *Store) PopulateCatalog() error
- func (s *Store) SetEntryCover(sid, eid, name string, data []byte) error
- func (s *Store) SetEntryDisplayTitle(sid, eid string, title string) error
- func (s *Store) SetEntryProgressAmount(sid, eid, uid string, num int) error
- func (s *Store) SetEntryProgressRead(sid, eid, uid string) error
- func (s *Store) SetEntryProgressUnread(sid, eid, uid string) error
- func (s *Store) SetSeriesCover(sid, name string, data []byte) error
- func (s *Store) SetSeriesDisplayTitle(sid string, title string) error
- func (s *Store) SetSeriesProgressRead(sid, uid string) error
- func (s *Store) SetSeriesProgressUnread(sid, uid string) error
- func (s *Store) SetSeriesTags(sid string, tags *manga.Tags) error
- func (s *Store) SetSubscription(sid, title string, uuid dbutil.NullString, ensureNewest bool) error
- func (s *Store) SetSubscriptionWithTime(sid, title string, uuid dbutil.NullString, t dbutil.Time, ensureNewest bool) error
- func (s *Store) Vacuum() error
- func (s *Store) ValidateLogin(name, pass string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCover = errors.New("cover is invalid")
View Source
var ErrInvalidProgressAmount = errors.New("progress amount is invalid (below zero or above total number of pages)")
View Source
var ErrItemNotExist = errors.New("item does not exist")
View Source
var ErrNotEnoughAdmins = errors.New("not enough admins in the db")
View Source
var ErrNotEnoughUsers = errors.New("not enough users in the db")
View Source
var ErrUserExist = errors.New("user already exists")
View Source
var ErrUserNotExist = errors.New("user does not exist")
Functions ¶
This section is empty.
Types ¶
type MissingItem ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func MustCreateNewStore ¶
func (*Store) ChangePassword ¶
func (*Store) ChangeUsername ¶
func (*Store) DeleteAllDownloads ¶
func (*Store) DeleteEntryCustomCover ¶
func (*Store) DeleteMissingItems ¶
func (*Store) DeleteSeries ¶
func (*Store) DeleteSeriesCustomCover ¶
func (*Store) DeleteSubscription ¶
func (*Store) DeleteSuccessfulDownloads ¶
func (*Store) DeleteUser ¶
func (*Store) GenerateThumbnails ¶
func (*Store) GetAllSubscriptions ¶
func (s *Store) GetAllSubscriptions() ([]manga.Subscription, error)
func (*Store) GetCatalogProgress ¶
func (s *Store) GetCatalogProgress(uid string) (human.CatalogProgress, error)
func (*Store) GetEntryCover ¶
func (*Store) GetEntryCoverType ¶
func (*Store) GetEntryProgress ¶
func (s *Store) GetEntryProgress(sid, eid, uid string) (human.EntryProgress, error)
func (*Store) GetEntryThumbnail ¶
func (*Store) GetFailedDownloads ¶
func (*Store) GetMissingItems ¶
func (s *Store) GetMissingItems() ([]MissingItem, error)
func (*Store) GetSeriesCover ¶
func (*Store) GetSeriesProgress ¶
func (s *Store) GetSeriesProgress(sid, uid string) (human.SeriesProgress, error)
func (*Store) GetSeriesThumbnail ¶
func (*Store) GetSubscription ¶
func (s *Store) GetSubscription(sid string) (manga.Subscription, error)
func (*Store) PopulateCatalog ¶
func (*Store) SetEntryCover ¶
func (*Store) SetEntryDisplayTitle ¶
func (*Store) SetEntryProgressAmount ¶
func (*Store) SetEntryProgressRead ¶
func (*Store) SetEntryProgressUnread ¶
func (*Store) SetSeriesDisplayTitle ¶
func (*Store) SetSeriesProgressRead ¶
func (*Store) SetSeriesProgressUnread ¶
func (*Store) SetSubscription ¶
func (*Store) SetSubscriptionWithTime ¶
func (*Store) ValidateLogin ¶
Click to show internal directories.
Click to hide internal directories.