requeueduration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

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) GetWithMsg added in v0.8.0

func (rd *Duration) GetWithMsg() (time.Duration, string)

func (*Duration) Merge added in v0.8.0

func (rd *Duration) Merge(rd2 *Duration)

func (*Duration) Update

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

func (*Duration) UpdateWithMsg added in v0.8.0

func (rd *Duration) UpdateWithMsg(newDuration time.Duration, format string, args ...interface{})

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