cache

package
v0.0.0-...-5c5d71a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CachePath string

CachePath is the path of cache folder

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Base string
	Id   string
}

func NewCache

func NewCache(Id string, Base string) *Cache

func (*Cache) Add

func (c *Cache) Add(sourcePath string)

func (*Cache) DetectChange

func (c *Cache) DetectChange(sourcePath string) bool

func (*Cache) MakeCachePath

func (c *Cache) MakeCachePath(sourcePath string) string

func (*Cache) Remove

func (c *Cache) Remove(sourcePaths ...string)

func (*Cache) Sign

func (c *Cache) Sign(sourcePath string, cachePath string) error

func (*Cache) Update

func (c *Cache) Update(sourcePath string)

Jump to

Keyboard shortcuts

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