MCPcopy Create free account
hub / github.com/stakater/Reloader / enqueue

Method enqueue

internal/pkg/controller/controller.go:286–290  ·  view source on GitHub ↗

enqueue adds an item to the queue and records metrics

(item interface{})

Source from the content-addressed store, hash-verified

284
285// enqueue adds an item to the queue and records metrics
286func (c *Controller) enqueue(item interface{}) {
287 c.queue.Add(item)
288 c.collectors.RecordQueueAdd()
289 c.collectors.SetQueueDepth(c.queue.Len())
290}
291
292// Run function for controller which handles the queue
293func (c *Controller) Run(threadiness int, stopCh chan struct{}) {

Callers 3

AddMethod · 0.95
UpdateMethod · 0.95
DeleteMethod · 0.95

Calls 3

AddMethod · 0.80
RecordQueueAddMethod · 0.80
SetQueueDepthMethod · 0.80

Tested by

no test coverage detected