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 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
Click to show internal directories.
Click to hide internal directories.