Discover Packages
github.com/Didstopia/githubby
internal
schedule
package
Version:
v1.0.15
Opens a new window with list of versions in this module.
Published: Feb 5, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package schedule provides cron-based scheduling for sync operations
ValidateSpec validates a cron expression
type Scheduler struct {
}
Scheduler manages cron-based sync execution
New creates a new Scheduler. Returns an error if the cron spec is invalid.
Run executes an immediate sync, then starts the cron loop.
It blocks until the context is cancelled.
Sync errors are logged but do not stop the scheduler.
Overlapping runs are skipped via cron.SkipIfStillRunning.
SyncFunc is the function signature for sync callbacks
Source Files
¶
Click to show internal directories.
Click to hide internal directories.