Documentation
¶
Index ¶
- func AddBooksToStore(books []*model.Book)
- func InitAllStore(cfg ConfigInterface) error
- func InitConfig(c ConfigInterface)
- func InitStore(storePath string, cfg ConfigInterface) error
- func IsSkipDir(path string) bool
- func IsSupportFile(checkPath string) bool
- func IsSupportMedia(checkPath string) bool
- func IsSupportTemplate(checkPath string) bool
- func SaveBooksToDatabase(cfg ConfigInterface) error
- type ConfigInterface
- type DirNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(c ConfigInterface)
func InitStore ¶
func InitStore(storePath string, cfg ConfigInterface) error
InitStore 扫描本地路径,取得路径里的书籍
func IsSupportTemplate ¶
IsSupportTemplate 判断压缩包内的文件是否是支持的模板文件
func SaveBooksToDatabase ¶
func SaveBooksToDatabase(cfg ConfigInterface) error
SaveBooksToDatabase 4,保存扫描结果到数据库
Types ¶
type ConfigInterface ¶
type ConfigInterface interface {
GetStoreUrls() []string
GetMaxScanDepth() int
GetMinImageNum() int
GetTimeoutLimitForScan() int
GetExcludePath() []string
GetSupportMediaType() []string
GetSupportFileType() []string
GetSupportTemplateFile() []string
GetZipFileTextEncoding() string
GetEnableDatabase() bool
GetClearDatabaseWhenExit() bool
GetDebug() bool
}
Click to show internal directories.
Click to hide internal directories.