grave

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Yard

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

Yard is a graveyard for deleted keys. It keeps track of the keys that have been deleted so that they do not attempt to get re-de-queued from the queue from the informer if they have just been deleted. Keys are tracked by their name and the index at which they were deleted. If more than 500000 keys are tracked, the graveyard will start to remove keys that are older than 10000 indexes to prevent the map from growing indefinitely from missed deletes. This _should_ never happen.

func New

func New() *Yard

func (*Yard) Deleted

func (y *Yard) Deleted(key string)

Deleted marks a key as just been deleted.

func (*Yard) HasJustDeleted

func (y *Yard) HasJustDeleted(key string) bool

HasJustDeleted returns true if the key has just been deleted.

Jump to

Keyboard shortcuts

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