Documentation ¶
Overview ¶
Package analytics provides the methods to run an analytics reporting system for API requests which may be useful to users for measuring access and possibly identifying bad actors abusing requests.
Index ¶
Constants ¶
View Source
const RANGE = 14
RANGE determines the number of days hugoverse request analytics and metrics are stored and displayed within the system
Variables ¶
This section is empty.
Functions ¶
func Backup ¶
func Backup(ctx context.Context, res http.ResponseWriter) error
Backup writes a snapshot of the system.db database to an HTTP response. The output is discarded if we get a cancellation signal.
func ChartData ¶
ChartData returns the map containing decoded javascript needed to chart RANGE days of data by day
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.