16 lines
251 B
Go
16 lines
251 B
Go
|
package staticjsonYahooFinance
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
const cacheAgeSeconds = 900
|
||
|
|
||
|
// intialized in providerImpl.go's Configure
|
||
|
var chartCache map[string]chartCacheEntry
|
||
|
|
||
|
type chartCacheEntry struct {
|
||
|
Chart chartResponse
|
||
|
LastUpdated time.Time
|
||
|
}
|