Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[QueueItem comparable]( name string, clk clock.WithTicker, ) component.Declared[Api[QueueItem]]
Types ¶
type Api ¶
type Api[QueueItem comparable] struct { // contains filtered or unexported fields }
func (Api[QueueItem]) EnqueueDelayed ¶
func (Api[QueueItem]) SetBeforeStart ¶
func (api Api[QueueItem]) SetBeforeStart(beforeStart BeforeStart)
type Args ¶
type Args struct { Name string Clock clock.WithTicker }
type Prereq ¶
A prerequisite condition before a worker can starts running.
Worker starts running as long as Wait returns true the first time. IsReady may return false subsequently, but it would only affect health checks but not worker liveness.
func HasSyncedPrereq ¶
func HasSyncedPrereq(hasSynced cache.InformerSynced) Prereq
func InformerPrereq ¶
func InformerPrereq(informer cache.SharedIndexInformer) Prereq
type State ¶
type State[QueueItem comparable] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.