updatecache

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(latestVersion string)

Save writes a new cache entry with the current time.

Types

type CacheEntry

type CacheEntry struct {
	CheckedAt     time.Time `json:"checkedAt"`
	LatestVersion string    `json:"latestVersion"`
}

CacheEntry holds the cached version check result.

func Load

func Load() *CacheEntry

Load reads the cache entry if it exists and has not expired. Returns nil if the cache is missing or stale.

Jump to

Keyboard shortcuts

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