statistics

package
v0.0.0-...-182577b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HourlyAssetMetric    = "HOURLY_ASSETS"
	HourlyRedirectMetric = "HOURLY_REDIRECTS"
	DailyAssetMetric     = "DAILY_ASSETS"
	DailyRedirectMetric  = "DAILY_REDIRECTS"
)

Variables

This section is empty.

Functions

func AssetMetricsWorker

func AssetMetricsWorker(c *gin.Context)

AssetMetricsWorker receives worker tasks to create asset metrics

func AssetsSince

func AssetsSince(ctx context.Context, owner string, ts int64) (int, error)

AssetsSince returns the number of new assets since a given point in time

func RedirectMetricsWorker

func RedirectMetricsWorker(c *gin.Context)

RedirectMetricsWorker receives worker tasks to create redirect metrics

func RedirectsSince

func RedirectsSince(ctx context.Context, owner string, ts int64) (int, error)

RedirectsSince returns the number of asset redirects since a given point in time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL