Documentation
¶
Overview ¶
Package scheduler provides automated playlist generation scheduling using cron.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Schedule defines when to run generation (cron format)
// Default: "0 2 * * *" (daily at 2 AM)
Schedule string
// DryRun enables dry-run mode (no actual changes)
DryRun bool
}
Config holds scheduler configuration
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler handles automated playlist generation on a cron schedule
func NewScheduler ¶
func NewScheduler( cfg *Config, generator *playlist.Generator, themes []config.ThemeConfig, logger *slog.Logger, ) (*Scheduler, error)
NewScheduler creates a new scheduler instance
func (*Scheduler) GetNextRun ¶
GetNextRun returns the next scheduled run time
Click to show internal directories.
Click to hide internal directories.