Versions in this module Expand all Collapse all v1 v1.0.7 Sep 9, 2024 Changes in this version + func BanUser(username string) error + func DemoteUser(username string) error + func PromoteUser(username string) error + func UnbanUser(username string) error type User + Banned bool + func GetUsers() ([]User, error) v1.0.6 Aug 24, 2024 v1.0.5 Aug 24, 2024 v1.0.4 Aug 17, 2024 Changes in this version type Library + CreatedAt int64 + UpdatedAt int64 v1.0.3 Aug 14, 2024 v1.0.2 Aug 12, 2024 Changes in this version + type Tag struct + Attributes struct{ ... } + ID string + Relationships []interface{} + Type string v1.0.1 Aug 11, 2024 Changes in this version + func DeleteChaptersByMangaSlug(mangaSlug string) error type Manga + CreatedAt time.Time + UpdatedAt time.Time v1.0.0 Aug 11, 2024 Changes in this version + var ListenerRegistry []Listener + func AddListener(listener Listener) + func ChapterExists(chapterSlug, mangaSlug string) (bool, error) + func Close() error + func CountUsers() (int64, error) + func CreateAccessToken(userName string) (string, error) + func CreateChapter(chapter Chapter) error + func CreateLibrary(library Library) error + func CreateManga(manga Manga) error + func CreateRefreshToken(userName string, version int) (string, error) + func CreateUser(username, password string) error + func DeleteChapter(mangaSlug, chapterSlug string) error + func DeleteLibrary(slug string) error + func DeleteManga(slug string) error + func DeleteMangasByLibrarySlug(librarySlug string) error + func GenerateNewRefreshToken(userName string) (string, error) + func GenerateRandomKey(length int) (string, error) + func GetAdjacentChapters(chapterSlug string, mangaSlug string) (prevSlug, nextSlug string, err error) + func GetKey() (string, error) + func IncrementRefreshTokenVersion(user *User) error + func Initialize(cacheDirectory string) error + func LibraryExists(slug string) (bool, error) + func MangaCount(filterBy, filter string) (int, error) + func MangaExists(slug string) (bool, error) + func NotifyListeners(notification Notification) + func RefreshAccessToken(refreshToken string) (string, string, error) + func StoreKey(key string) error + func UpdateChapter(chapter *Chapter) error + func UpdateLibrary(library *Library) error + func UpdateManga(manga *Manga) error + func UpdateUserRole(username string, newRole string) error + func ValidateToken(tokenString string) (jwt.MapClaims, error) + type Chapter struct + ChapterCoverURL string + File string + MangaSlug string + Name string + Slug string + Type string + func GetChapter(mangaSlug, chapterSlug string) (*Chapter, error) + func GetChapters(mangaSlug string) ([]Chapter, error) + func SearchChapters(keyword string, page int, pageSize int, sortBy string, sortOrder string) ([]Chapter, error) + type FileInfo struct + Children []*FileInfo + IsDir bool + Name string + Parent string + type JWTKey struct + Key string + type Library struct + Cron string + Description string + Folders StringArray + Name string + Slug string + func GetLibraries() ([]Library, error) + func GetLibrary(slug string) (*Library, error) + func SearchLibraries(keyword string, page int, pageSize int, sortBy string, sortOrder string) ([]Library, error) + func (l *Library) GetFolderNames() string + func (l *Library) Validate() error + type ListMangaResponse struct + Data []MangaDetail + Limit int + Offset int + Response string + Result string + Total int + func GetMangadexMangas(title string) (*ListMangaResponse, error) + type Listener interface + Notify func(notification Notification) + type Manga struct + Author string + ContentRating string + CoverArtURL string + Description string + LibrarySlug string + Name string + OriginalLanguage string + Path string + Slug string + Status string + Year int + func GetManga(slug string) (*Manga, error) + func SearchMangas(filter string, page int, pageSize int, sortBy string, sortOrder string, ...) ([]Manga, int64, error) + type MangaAttributes struct + AltTitles []map[string]string + AvailableTranslatedLanguages []string + ChapterNumbersResetOnNewVolume bool + ContentRating string + CreatedAt string + Description map[string]string + IsLocked bool + LastChapter string + LastVolume string + LatestUploadedChapter string + Links map[string]string + OriginalLanguage string + PublicationDemographic interface{} + State string + Status string + Tags []struct{ ... } + Title map[string]string + UpdatedAt string + Version int + Year int + type MangaDetail struct + Attributes MangaAttributes + ID string + Relationships []Relationship + Type string + func GetBestMatchMangadexManga(title string) (*MangaDetail, error) + func GetMangadexManga(id string) (*MangaDetail, error) + type Notification struct + Payload interface{} + Type string + type Relationship struct + Attributes struct{ ... } + ID string + Type string + type SingleMangaResponse struct + Data MangaDetail + Response string + Result string + type StringArray []string + func (a *StringArray) Scan(value interface{}) error + func (a StringArray) Value() (driver.Value, error) + type User struct + Password string + RefreshTokenVersion int + Role string + Username string + func FindUserByUsername(username string) (*User, error)