package cron
import "zgo.at/goatcounter/v2/cron"
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, tables []string) error
- func RunBackground(ctx context.Context)
- func UpdateStats(ctx context.Context, site *goatcounter.Site, siteID int64, hits []goatcounter.Hit) error
Variables ¶
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) error
Source Files ¶
browser_stat.go cron.go hit_count.go hit_stat.go location_stat.go ref_count.go size_stat.go system_stat.go tasks.go
- Version
- v2.1.1
- Published
- Dec 25, 2021
- Platform
- darwin/amd64
- Imports
- 19 packages
- Last checked
- 7 hours ago –
Tools for package owners.