Documentation ¶
Overview ¶
Package process tags received events
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyticsData ¶
type AnalyticsData struct { ArticleID string ArticleTitle string PreviousPage string CurrentPage string ConnectionID string Refreshed bool Referrer string }
AnalyticsData is transformed data from IncomingData
func ValidateData ¶
func ValidateData(data IncomingData, id string) (AnalyticsData, error)
ValidateData validates and stores incoming data and a connection ID
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
Event contains functions for each received event
func FilterData ¶
func FilterData(data AnalyticsData) Event
FilterData takes AnalyticsData struct, filters and maps the members into an Article or Page struct and returns an Event interface
type IncomingData ¶
type IncomingData struct { ArticleID string `json:"articleId,omitempty"` ArticleTitle string `json:"articleTitle,omitempty"` PreviousPage string `json:"previousPage"` CurrentPage string `json:"currentPage"` Refreshed bool `json:"refreshed"` Referrer string `json:"referrer"` }
IncomingData represents page view event received
Click to show internal directories.
Click to hide internal directories.