Documentation ¶
Overview ¶
Package store reads total article views from DynamoDB article table (reader) and publishes to the websocket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateReferrerTable ¶
func UpdateReferrerTable(data process.AnalyticsData) error
UpdateReferrerTable only updates the table if referrer is external and not null
Types ¶
type ArticleViews ¶
type ArticleViews struct {
UniqueViews int `json:"uniqueViews"`
}
ArticleViews represents stats read from table
func GetArticleViews ¶
func GetArticleViews(articleID string) (ArticleViews, error)
GetArticleViews queries the article table and returns the value of total views for an article
Click to show internal directories.
Click to hide internal directories.