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 ¶
const RANGE = 14
RANGE determines the number of days ponzu 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
func Close ¶
func Close()
Close exports the abillity to close our db file. Should be called with defer after call to Init() from the same place.
Types ¶
This section is empty.