Versions in this module Expand all Collapse all v0 v0.9.13 Dec 3, 2024 v0.9.12 Dec 1, 2024 Changes in this version + var MainStore = Store + func CheckAllBookFileExist() + func ClearAllBookData() + func ClearBookData() + func ClearBookGroupData() + func ResetBookGroupData() type BookInfo + Deleted bool + func (b *BookInfo) SetCover(c ImageInfo) *BookInfo type ComigoConfig + Stores []stores.Store + UploadDirOption UploadDirOption + func (c *ComigoConfig) AddLocalStore(path string) + func (c *ComigoConfig) AddLocalStores(path []string) + func (c *ComigoConfig) CheckLocalStores(path string) bool + func (c *ComigoConfig) LocalStoresList() []string + func (c *ComigoConfig) ReplaceLocalStores(pathList []string) + type ReadingProgress struct + NowChapterNum int + NowPageNum int + ReadingTime int + func GetReadingProgress(progress string) (ReadingProgress, error) + type Store struct + SubStores sync.Map + func (folder *Store) AddBookToSubStore(searchPath string, b *BookInfo) error + func (folder *Store) AddSubStore(basePath string) error + func (folder *Store) AnalyzeStore() (e error) + type UploadDirOption int v0.9.11 Aug 25, 2024 Changes in this version + var MainFolder = Folder + func AddBook(b *Book, basePath string, minPageNum int) error + func AddBooks(list []*Book, basePath string, minPageNum int) (err error) + func CheckBookExist(filePath string, bookType SupportFileType, storePath string) (exit bool) + func ClearTempFilesALL(debug bool, cacheFilePath string) + func DeleteBookByID(bookID string) + func GetBookGroupIDByBookID(id string) (group_id string, err error) + func GetBooksNumber() int + func ResetBookMap() + func RestoreDatabaseBooks(list []*Book) (err error) + type Book struct + Pages Pages + func GetAllBookList() []*Book + func GetArchiveBooks() []*Book + func GetBookByAuthor(author string, sortBy string) ([]*Book, error) + func GetBookByID(id string, sortBy string) (*Book, error) + func GetRandomBook() (*Book, error) + func NewBook(filePath string, modified time.Time, fileSize int64, storePath string, ...) (*Book, error) + func (b *Book) GetAuthor() string + func (b *Book) GetBookID() string + func (b *Book) GetFilePath() string + func (b *Book) GetPageCount() int + func (b *Book) ScanAllImage() + func (b *Book) ScanAllImageGo() + func (b *Book) SortPages(s string) + func (b *Book) SortPagesByImageList(imageList []string) + type BookGroup struct + ChildBook sync.Map + func GetBookGroupInfoByChildBookID(id string) (g *BookGroup, err error) + func NewBookGroup(filePath string, modified time.Time, fileSize int64, storePath string, ...) (*BookGroup, error) + type BookInfo struct + Author string + BookID string + BookStorePath string + ChildBookNum int + Cover ImageInfo + Depth int + ExtractNum int + ExtractPath string + FilePath string + FileSize int64 + ISBN string + InitComplete bool + Modified time.Time + NonUTF8Zip bool + PageCount int + ParentFolder string + Press string + PublishedAt string + ReadPercent float64 + Title string + Type SupportFileType + ZipTextEncoding string + func NewBaseInfo(b *Book) *BookInfo + func (b *BookInfo) SetClover(c ImageInfo) *BookInfo + func (b *BookInfo) ShortTitle() string + type BookInfoList struct + BookInfos []BookInfo + SortBy string + func GetAllBookInfoList(sortBy string) (*BookInfoList, error) + func GetBookInfoListByDepth(depth int, sortBy string) (*BookInfoList, error) + func GetBookInfoListByID(BookID string, sortBy string) (*BookInfoList, error) + func GetBookInfoListByMaxDepth(depth int, sortBy string) (*BookInfoList, error) + func GetBookInfoListByParentFolder(parentFolder string, sortBy string) (*BookInfoList, error) + func TopOfShelfInfo(sortBy string) (*BookInfoList, error) + func (s *BookInfoList) SortBooks(by string) + func (s BookInfoList) Len() int + func (s BookInfoList) Less(i, j int) (less bool) + func (s BookInfoList) Swap(i, j int) + type BookInterface interface + GetAuthor func(bookID string) string + GetBookInfo func(bookID string) *BookInfo + GetFileData func(bookID string, resourceURI string) string + GetPageCount func(bookID string) int + type BookStore struct + Host string + Password string + Path string + Port int + ShareName string + Type string + Username string + type ComigoConfig struct + BookStores []BookStore + CachePath string + CertFile string + ClearCacheExit bool + ClearDatabaseWhenExit bool + ConfigPath string + Debug bool + DefaultMode string + DisableLAN bool + EnableDatabase bool + EnableLogin bool + EnableTLS bool + EnableUpload bool + ExcludePath []string + GenerateMetaData bool + Host string + KeyFile string + LocalStores []string + LogFileName string + LogFilePath string + LogToFile bool + MaxScanDepth int + MinImageNum int + OpenBrowser bool + Password string + Port int + PrintAllPossibleQRCode bool + SupportFileType []string + SupportMediaType []string + SupportTemplateFile []string + Timeout int + TimeoutLimitForScan int + UploadPath string + UseCache bool + Username string + ZipFileTextEncoding string + func UpdateConfig(config *ComigoConfig, jsonString string) (*ComigoConfig, error) + func (c *ComigoConfig) SetByExecutableFilename() + type ConfigStatus struct + In string + Path struct{ ... } + func (c *ConfigStatus) SetConfigStatus() error + type Folder struct + Path string + SortBy string + SubFolders sync.Map + func (folder *Folder) AddBookToSubFolder(searchPath string, b *BookInfo) error + func (folder *Folder) AddSubFolder(basePath string) error + func (folder *Folder) InitFolder() (e error) + type FrpClientConfig struct + FrpType string + FrpcCommand string + RandomRemotePort bool + RemotePort int + ServerAddr string + ServerPort int + Token string + type ImageInfo struct + Blurhash string + FileSize int64 + Height int + ImgType string + InsertHtml string + ModeTime time.Time + NameInArchive string + PageNum int + RealImageFilePATH string + Url string + Width int + type Pages struct + Images []ImageInfo + SortBy string + func (s Pages) Len() int + func (s Pages) Less(i, j int) (less bool) + func (s Pages) Swap(i, j int) + type SupportFileType string + const TypeAudio + const TypeBooksGroup + const TypeCbr + const TypeCbz + const TypeDir + const TypeEpub + const TypePDF + const TypeRar + const TypeTar + const TypeUnknownFile + const TypeVideo + const TypeZip + func GetBookTypeByFilename(filename string) SupportFileType + type User struct + Email string + FirstName string + ID int + LastName string + Password string + Username string + type WebPServerConfig struct + AllowedTypes []string + ExhaustPath string + HOST string + ImgPath string + PORT string + QUALITY int + WebpCommand string