Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DisableVolumeDirs Kavita has a bug where it rescans series on each scan loop when they have subfolders // until this has been resolved, we will not be adding the volume dir // See https://github.com/Kareadita/Kavita/issues/3557 DisableVolumeDirs = boolFeature("DISABLE_VOLUME_DIRS") // DisableOneShotInFileName removed the (OneShot) in the filename DisableOneShotInFileName = boolFeature("DISABLE_ONE_SHOT_IN_FILE_NAME") // SkipTagsOnFailure will skip tag writing if preferences fail to load SkipTagsOnFailure = boolFeature("SKIP_TAGS_ON_FAILURE") )
View Source
var ( Dir = orDefault(os.Getenv("CONFIG_DIR"), ".") ErrInvalidSyncID = errors.New("invalid sync id") )
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type Config ¶
type Config struct {
Version int `json:"version"`
SyncId int `json:"sync_id"`
RootDir string `json:"root_dir"`
BaseUrl string `json:"base_url"`
Secret string `json:"secret"`
HasUpdatedDB bool `json:"has_updated_db"`
Logging Logging `json:"logging"`
Downloader Downloader `json:"downloader"`
Cache CacheConfig `json:"cache"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Downloader ¶
type LogHandler ¶
type LogHandler string
const ( LogHandlerText LogHandler = "TEXT" LogHandlerJSON LogHandler = "JSON" )
Click to show internal directories.
Click to hide internal directories.