Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityLog ¶
type ActivityLog struct {
ID int64 `json:"id"`
Timestamp time.Time `json:"timestamp"`
JobType string `json:"job_type"`
MediaType string `json:"media_type"` // "movie" or "show"
Title string `json:"title"`
Year int `json:"year"`
TMDBID int `json:"tmdb_id,omitempty"`
TVDBID int `json:"tvdb_id,omitempty"`
IMDBID string `json:"imdb_id,omitempty"`
PosterURL string `json:"poster_url,omitempty"`
Status string `json:"status"` // "added", "failed", "skipped"
Message string `json:"message,omitempty"`
}
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) ClearOldLogs ¶
ClearOldLogs removes logs older than the specified number of days
func (*Database) GetActivityStats ¶
GetActivityStats returns statistics about activity
func (*Database) GetRecentActivity ¶
func (d *Database) GetRecentActivity(limit int) ([]ActivityLog, error)
GetRecentActivity retrieves recent activity logs
func (*Database) LogActivity ¶
func (d *Database) LogActivity(log ActivityLog) error
LogActivity adds a new activity log entry
Click to show internal directories.
Click to hide internal directories.