Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigurer ¶
func NewConfigurer() config.Configurer
func SetCacheFactory ¶
func SetCacheFactory(c CacheFactory)
func VerifyCacheVersion ¶
Types ¶
type Cache ¶
type Cache interface {
/** Persist any changes to the cache */
Persist()
/** Load+Store data computed from file contents.
*
* If the underlying file has changed since the data was computed, the
* loader should return false.
*
* The file content may or may not be read from disk, depending on the Cache
* implementation as well as the cache status.
*
* The path 'root' is not part of the cache key, but is used to resolve
* relative paths in the cache.
*/
LoadOrStoreFile(root, path, key string, loader FileCompute) (any, bool, error)
}
type CacheFactory ¶
Click to show internal directories.
Click to hide internal directories.