analytics

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CaptureAnalyticsData(r *http.Request) (string, error)
}

Service - defines a Stats Service Interface

type ServiceBackend

type ServiceBackend interface {
	Store(req *http.Request, url, term, listType, gaID string, gID string, pageIndex, linkIndex, pageSize float64)
}

ServiceBackend is used to store data output by the analytics service

func NewSQSBackend

func NewSQSBackend(queueURL string) (ServiceBackend, error)

NewSQSBackend creates a new SQS backend for storing analytics data

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

ServiceImpl - Implementation of the Analytics Service interface.

func NewServiceImpl

func NewServiceImpl(backend ServiceBackend) *ServiceImpl

NewServiceImpl - Creates a new Analytics ServiceImpl.

func (*ServiceImpl) CaptureAnalyticsData

func (s *ServiceImpl) CaptureAnalyticsData(r *http.Request) (string, error)

CaptureAnalyticsData - captures the analytics values

Jump to

Keyboard shortcuts

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