Documentation ¶ Index ¶ type Cache func NewCache(metaFile string) *Cache func (cache *Cache) Check(url string, cachePath string) (bool, string) func (cache *Cache) Fetch(url string, cachePath string) string func (cache *Cache) StartDownload(url string, cachePath string) func (cache *Cache) Wait() type CacheMeta Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { Files map[string]*CacheMeta // contains filtered or unexported fields } func NewCache ¶ func NewCache(metaFile string) *Cache func (*Cache) Check ¶ func (cache *Cache) Check(url string, cachePath string) (bool, string) func (*Cache) Fetch ¶ func (cache *Cache) Fetch(url string, cachePath string) string func (*Cache) StartDownload ¶ func (cache *Cache) StartDownload(url string, cachePath string) func (*Cache) Wait ¶ func (cache *Cache) Wait() type CacheMeta ¶ type CacheMeta struct { Saved string `json:"saved,omitempty"` ETag string `json:"etag,omitempty"` MD5 string `json:"md5,omitempty"` } Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.