Documentation
¶
Index ¶
Constants ¶
View Source
const ( JobTypeContentPublish = "cms.content.publish" JobTypeContentUnpublish = "cms.content.unpublish" JobTypePagePublish = "cms.page.publish" JobTypePageUnpublish = "cms.page.unpublish" )
Variables ¶
This section is empty.
Functions ¶
func ContentPublishJobKey ¶
func ContentUnpublishJobKey ¶
func NewInMemory ¶
func NewInMemory(opts ...Option) interfaces.Scheduler
NewInMemory creates a deterministic scheduler implementation suitable for tests.
func NewNoOp ¶
func NewNoOp() interfaces.Scheduler
NewNoOp returns a scheduler implementation that drops every request.
func PagePublishJobKey ¶
func PageUnpublishJobKey ¶
Types ¶
type Option ¶
type Option func(*inMemoryScheduler)
Option allows customizing the behaviour of the in-memory scheduler.
func WithDefaultMaxAttempts ¶
WithDefaultMaxAttempts overrides the default retry attempts applied when the job spec leaves it unset.
func WithIDGenerator ¶
WithIDGenerator overrides the ID generator used when enqueuing jobs.
Click to show internal directories.
Click to hide internal directories.