requeueduration

package
v0.0.0-...-7f68784 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Duration helps calculate the shortest non-zore duration to requeue

func (*Duration) Get

func (rd *Duration) Get() time.Duration

func (*Duration) Update

func (rd *Duration) Update(newDuration time.Duration)

type DurationStore

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

DurationStore can store a duration map for multiple workloads

func (*DurationStore) Pop

func (dm *DurationStore) Pop(key string) time.Duration

func (*DurationStore) Push

func (dm *DurationStore) Push(key string, newDuration time.Duration)

Jump to

Keyboard shortcuts

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