analytics

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQSClient added in v1.29.1

type SQSClient interface {
	SendMessage(ctx context.Context, params *sqs.SendMessageInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageOutput, error)
}

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(ctx context.Context, 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, redirectSecret string) *ServiceImpl

NewServiceImpl - Creates a new Analytics ServiceImpl.

func (*ServiceImpl) CaptureAnalyticsData

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

CaptureAnalyticsData - captures the analytics values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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