package
0.13.1-beta1
Repository: https://github.com/donewscode/core.git
Documentation: pkg.go.dev

# Functions

DelayIfOverlap returns a new JobDescriptor that will delay the job if it overlaps with another job.
GetCurrentSchedule returns the current schedule for the given context.
GetNextSchedule returns the next schedule for the given context.
New returns a new Cron instance.
NewCronJobMetrics constructs a new *CronJobMetrics, setting default labels to "unknown".
Recover returns a new JobDescriptor that will recover from panics.
SkipIfOverlap returns a new JobDescriptor that will skip the job if it overlaps with another job.
TimeoutIfOverlap returns a new JobDescriptor that will cancel the job's context if the next schedule is due.
WithLogging returns a new Universal job that will log.
WithMetrics returns a new JobDescriptor that will report metrics.
WithName sets the name of the job.
WithPersistence ensures the job will be run at least once by committing successful runs into redis.
WithSchedule sets the cron schedule of the job.
WithTracing returns a new Universal job that will trace.

# Structs

Config is the configuration for the cron package.
Cron schedules jobs to be run on the specified schedule.
CronJobMetrics collects metrics for cron jobs.
JobDescriptor contains the information about jobs.
PersistenceConfig is the configuration for WithPersistence.

# Type aliases

JobID is the identifier of jobs.
JobOption is a middleware for cron jobs.