analytics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

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 ponzu request analytics and metrics are stored and displayed within the system

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	StartRecorder()
	Record(req entities.AnalyticsHTTPRequestMetadata)
	GetChartData() (map[string]interface{}, error)
}

func New

func New(db driver.Database) (Service, error)

Jump to

Keyboard shortcuts

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