Documentation ¶
Overview ¶
Package cron schedules jobs.
Index ¶
- Variables
- func DataRetention(ctx context.Context) error
- func PersistAndStat(ctx context.Context) error
- func ReindexStats(ctx context.Context, site goatcounter.Site, hits []goatcounter.Hit, ...) error
- func RunBackground(db zdb.DB)
- func RunOnce(db zdb.DB)
- func UpdateStats(ctx context.Context, site *goatcounter.Site, siteID int64, ...) error
- func Wait(db zdb.DB)
Constants ¶
This section is empty.
Variables ¶
View Source
var LastMemstore lastMemstore
Functions ¶
func DataRetention ¶
func PersistAndStat ¶
func ReindexStats ¶
func ReindexStats(ctx context.Context, site goatcounter.Site, hits []goatcounter.Hit, tables []string) error
ReindexStats re-indexes all the statistics for the given tables; this is intended to be run by the "goatcounter reindex" command.
func RunBackground ¶
RunBackground runs tasks in the background according to the given schedule.
func UpdateStats ¶
func UpdateStats(ctx context.Context, site *goatcounter.Site, siteID int64, hits []goatcounter.Hit, isReindex bool) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.