Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache caches the different reports generated by the server
func (*Cache) Load ¶
Load returns a cached report. If the report does not exist, or is expired, it sets up Once to generate a new report
func (*Cache) MaybeGenerate ¶
func (cache *Cache) MaybeGenerate(name string, generate func() (*tabulator.Tabulator, error)) (report *tabulator.Tabulator, err error)
MaybeGenerate loads a report from Cache, or generates it if the report does not exist or is expired
Click to show internal directories.
Click to hide internal directories.