queue

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRequeued added in v0.4.0

func SetRequeued(name string, val float64)

SetRequeued updates the number of requeued items

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

queue provides a rate-limited queue that processes items with a provided reconcile function

func NewQueue

func NewQueue(name string, reconcileFunc queueReconcileFunc) *Queue

newQueue returns a new queue

func (*Queue) Add

func (q *Queue) Add(obj interface{})

Add an item to the queue, where that item is an object that implements meta.Interface.

func (*Queue) Run

func (q *Queue) Run()

Run processes items from the queue as they're added

func (*Queue) Stop

func (q *Queue) Stop()

Stop causes the queue to shut down

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL