Documentation
¶
Index ¶
- type Logger
- func (l *Logger) CleanupOldRecords(olderThan time.Duration) error
- func (l *Logger) GetByMovieID(movieID string) ([]models.History, error)
- func (l *Logger) GetByOperation(operation string, limit int) ([]models.History, error)
- func (l *Logger) GetByStatus(status string, limit int) ([]models.History, error)
- func (l *Logger) GetRecent(limit int) ([]models.History, error)
- func (l *Logger) GetStats() (*Stats, error)
- func (l *Logger) LogDownload(movieID, url, localPath, mediaType string, err error) error
- func (l *Logger) LogNFO(movieID, nfoPath string, err error) error
- func (l *Logger) LogOrganize(movieID, originalPath, newPath string, dryRun bool, err error) error
- func (l *Logger) LogRevert(movieID, originalPath, revertedFrom string, err error) error
- func (l *Logger) LogScrape(movieID, sourceURL string, metadata interface{}, err error) error
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger handles logging operations to the history database
func (*Logger) CleanupOldRecords ¶
CleanupOldRecords removes history records older than the specified duration
func (*Logger) GetByMovieID ¶
GetByMovieID retrieves history for a specific movie
func (*Logger) GetByOperation ¶
GetByOperation retrieves history for a specific operation type
func (*Logger) GetByStatus ¶
GetByStatus retrieves history with a specific status
func (*Logger) LogDownload ¶
LogDownload logs a media download operation
func (*Logger) LogOrganize ¶
LogOrganize logs a file organization operation
Click to show internal directories.
Click to hide internal directories.