Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) AddDownload(dl *api.Download) error
- func (db *DB) AdminCount() int
- func (db *DB) ChangePassword(uid, password string) error
- func (db *DB) ChangeProgress(uid string, p *users.CatalogProgress) error
- func (db *DB) ChangeUserType(uid string, uType users.Type) error
- func (db *DB) ChangeUsername(uid, name string) error
- func (db *DB) ClearFinishedDownloads() error
- func (db *DB) CreateUser(u *users.User) error
- func (db *DB) DeleteEntryCover(sid, eid string) error
- func (db *DB) DeleteMissingItems() error
- func (db *DB) DeleteSeriesCover(seriesHash string) error
- func (db *DB) DeleteUser(uid string) error
- func (db *DB) GenerateEntryThumbnail(sid, eid string, forceNew bool) error
- func (db *DB) GenerateSeriesThumbnail(sid string, forceNew bool) error
- func (db *DB) GenerateThumbnails(forceNew bool) error
- func (db *DB) GetCatalog() api.Catalog
- func (db *DB) GetCatalogModTime() (time.Time, error)
- func (db *DB) GetDownloads() []*api.Download
- func (db *DB) GetEntries(sid string) (api.Entries, error)
- func (db *DB) GetEntry(sid, eid string) (*api.Entry, error)
- func (db *DB) GetEntryArchive(sid, eid string) (*manga.Archive, error)
- func (db *DB) GetEntryCover(sid, eid string) (*manga.Cover, error)
- func (db *DB) GetEntryCoverFile(sid, eid string) ([]byte, string, error)
- func (db *DB) GetEntryModTime(sid, eid string) (time.Time, error)
- func (db *DB) GetEntryOrder(sid, eid string) (int, error)
- func (db *DB) GetEntryPage(sid, eid string, num int) (*manga.Page, error)
- func (db *DB) GetEntryThumbnail(sid, eid string) ([]byte, string, error)
- func (db *DB) GetFailedDownloads() []*api.Download
- func (db *DB) GetMissingItems() api.MissingItems
- func (db *DB) GetSeries(sid string) (*api.Series, error)
- func (db *DB) GetSeriesCover(sid string) (*manga.Cover, error)
- func (db *DB) GetSeriesCoverFile(sid string) ([]byte, string, error)
- func (db *DB) GetSeriesFolderTitle(sid string) (string, error)
- func (db *DB) GetSeriesModTime(sid string) (time.Time, error)
- func (db *DB) GetSeriesTags(sid string) (*sets.Set, error)
- func (db *DB) GetSeriesThumbnail(sid string) ([]byte, string, error)
- func (db *DB) GetSeriesWithTag(tag string) api.Catalog
- func (db *DB) GetTags() *sets.Set
- func (db *DB) GetUser(uid string) (*users.User, error)
- func (db *DB) GetUserProgress(uid string) (*users.CatalogProgress, error)
- func (db *DB) GetUsers(safe bool) []users.User
- func (db *DB) HasEntry(sid, eid string) bool
- func (db *DB) HasSeries(sid string) bool
- func (db *DB) HasUser(uid string) bool
- func (db *DB) HasUsers() bool
- func (db *DB) IsAdmin(uid string) (bool, error)
- func (db *DB) PopulateCatalog(series []*manga.ParsedSeries) error
- func (db *DB) SaveUser(u *users.User, overwrite bool) error
- func (db *DB) SetEntryCover(sid, eid string, cover *manga.Cover) error
- func (db *DB) SetEntryMetadata(sid, eid string, m *manga.EntryMetadata) error
- func (db *DB) SetSeriesCover(sid string, cover *manga.Cover) error
- func (db *DB) SetSeriesMetadata(sid string, m *manga.SeriesMetadata) error
- func (db *DB) SetSeriesTags(sid string, tags []string) error
- func (db *DB) String() string
- func (db *DB) ValidateLogin(name, pass string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCoverEmpty = errors.New("cover is empty") ErrThumbnailEmpty = errors.New("thumbnail is empty") )
View Source
var ( ErrNotEnoughAdmins = errors.New("not enough admins in the db") ErrProgressNotExist = errors.New("progress does not exist") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) AdminCount ¶
func (*DB) ChangePassword ¶
func (*DB) ChangeProgress ¶
func (db *DB) ChangeProgress(uid string, p *users.CatalogProgress) error
func (*DB) ChangeUsername ¶
func (*DB) ClearFinishedDownloads ¶
func (*DB) DeleteEntryCover ¶
func (*DB) DeleteMissingItems ¶
func (*DB) DeleteSeriesCover ¶
func (*DB) DeleteUser ¶
func (*DB) GenerateEntryThumbnail ¶
func (*DB) GenerateSeriesThumbnail ¶
func (*DB) GenerateThumbnails ¶
func (*DB) GetCatalog ¶
func (*DB) GetDownloads ¶
func (*DB) GetEntryCoverFile ¶
func (*DB) GetEntryThumbnail ¶
func (*DB) GetFailedDownloads ¶
func (*DB) GetMissingItems ¶
func (db *DB) GetMissingItems() api.MissingItems
func (*DB) GetSeriesCoverFile ¶
func (*DB) GetSeriesThumbnail ¶
func (*DB) GetUserProgress ¶
func (db *DB) GetUserProgress(uid string) (*users.CatalogProgress, error)
func (*DB) PopulateCatalog ¶
func (db *DB) PopulateCatalog(series []*manga.ParsedSeries) error
func (*DB) SetEntryMetadata ¶
func (db *DB) SetEntryMetadata(sid, eid string, m *manga.EntryMetadata) error
func (*DB) SetSeriesMetadata ¶
func (db *DB) SetSeriesMetadata(sid string, m *manga.SeriesMetadata) error
func (*DB) ValidateLogin ¶
Click to show internal directories.
Click to hide internal directories.