Documentation ¶
Index ¶
- Constants
- Variables
- type Cache
- type Data
- type FileInfo
- type LocalCache
- func (c *LocalCache) AddFile(file string) error
- func (c *LocalCache) Dir() string
- func (c *LocalCache) Get(key string) *FileInfo
- func (c *LocalCache) Has(key string) bool
- func (c *LocalCache) Put(key string, value *FileInfo)
- func (c *LocalCache) Save() error
- func (c *LocalCache) Verify(file string) (*FileInfo, error)
- type OptimizersToResults
Constants ¶
View Source
const Filename = ".optimizer_cache"
Variables ¶
View Source
var ( ErrIsNotDirectory = errors.New("element is not directory") ErrPathDoesNotExist = errors.New("path does not exist") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type FileInfo ¶
type FileInfo struct { Hash string `json:"hash"` Results OptimizersToResults `json:"results,omitempty"` }
type LocalCache ¶
type LocalCache struct {
// contains filtered or unexported fields
}
func NewEmptyCache ¶
func NewEmptyCache(dir string) *LocalCache
func (*LocalCache) AddFile ¶
func (c *LocalCache) AddFile(file string) error
func (*LocalCache) Dir ¶
func (c *LocalCache) Dir() string
func (*LocalCache) Get ¶
func (c *LocalCache) Get(key string) *FileInfo
func (*LocalCache) Has ¶
func (c *LocalCache) Has(key string) bool
func (*LocalCache) Put ¶
func (c *LocalCache) Put(key string, value *FileInfo)
func (*LocalCache) Save ¶
func (c *LocalCache) Save() error
type OptimizersToResults ¶
Click to show internal directories.
Click to hide internal directories.