Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HookAnalyticsUpdate allows modules to listen for analytics updates HookAnalyticsUpdate = hooks.NewHook[Analytics]("analytics.update") )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // Get handles web requests to get analytics Get(echo.Context) error // WebRequestMiddleware provides middleware to track all web requests WebRequestMiddleware(next echo.HandlerFunc) echo.HandlerFunc }
Handler provides an HTTP handler for analytics
type Service ¶
type Service interface { // GetAnalytics returns analytics GetAnalytics() (Analytics, error) // IncrementWebRequests increments the counter that tracks web requests IncrementWebRequests() error // IncrementEntities increments the counter that track entities IncrementEntities() error }
Service provides an interface to service analytics
Click to show internal directories.
Click to hide internal directories.