Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.