internal

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessingStartTimes

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

func NewProcessingStartTimes

func NewProcessingStartTimes() *ProcessingStartTimes

func (*ProcessingStartTimes) DeleteAll added in v0.13.18

func (p *ProcessingStartTimes) DeleteAll(name string, namespace string)

DeleteAll deletes all processing start times for the given (name, namespace), regardless of generation.

func (*ProcessingStartTimes) DeleteRange

func (p *ProcessingStartTimes) DeleteRange(name string, namespace string, observedGeneration int64)

DeleteRange deletes all processing start times for the given (name, namespace) where generation <= observedGeneration.

func (*ProcessingStartTimes) GetRange

func (p *ProcessingStartTimes) GetRange(name string, namespace string, observedGeneration int64, success bool) []time.Time

GetRange returns the processing start times for all requests with name, namespace, and generation <= observedGeneration.

func (*ProcessingStartTimes) Set

func (p *ProcessingStartTimes) Set(name string, namespace string, observedGeneration int64, startTime time.Time)

Set sets the processing start time for the given request if it is earlier than the current one. Items with the same key can be queued multiple times, but we care about the first time that a request was encountered.

func (*ProcessingStartTimes) SetRangeFailed

func (p *ProcessingStartTimes) SetRangeFailed(name string, namespace string, observedGeneration int64)

SetRangeFailed sets Failed: true on all items matching (name, namespace) and generation <= observedGeneration. This is to avoid double counting the processing duration for failed requests.

Jump to

Keyboard shortcuts

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