cache

package
v0.0.0-...-8f56db8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCache

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

func NewBuildCache

func NewBuildCache(size int) *BuildCache

func (*BuildCache) Add

func (c *BuildCache) Add(key interface{}, id string, s models.TileStatus, d time.Duration)

func (*BuildCache) GetEstimatedDuration

func (c *BuildCache) GetEstimatedDuration(key interface{}) *time.Duration

func (*BuildCache) GetPreviousStatus

func (c *BuildCache) GetPreviousStatus(key interface{}, id string) *models.TileStatus

Get Previous Status excludes current status in case of multiple call with the same current build

Jump to

Keyboard shortcuts

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