package
Version:
v0.0.0-...-f0d32e8
Opens a new window with list of versions in this module.
Published: May 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsStaleAny reports whether any of the os is marked as stale.
func MarkStale(os ...any)
MarkStale will mark any of the oses as stale, if possible.
type Info interface {
IsStale() bool
}
Info tells if a resource is marked as stale.
type Marker interface {
MarkStale()
}
Marker marks a Resource as stale.
Staler controls stale state of a Resource. A stale resource should be discarded.
type Value[V any] struct {
Value V
IsStaleFunc func() bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.