package nvdmirror import ( "time" ) // Cache entry type Entry struct { // time that entry was set Time time.Time `json:"time"` Headers map[string]string `json:"headers"` } // URL cache type Cache interface { Get(string) (map[string]string, bool) Set(string, map[string]string) error // delete cache entry Delete(string) error Close() error // save and close cache file }