Versions in this module Expand all Collapse all v1 v1.2.1 Nov 30, 2018 v1.2.0 Nov 20, 2018 Changes in this version + var ErrNoResults = sqlstore.ErrNoResults + type Datastore interface + Close func() error + CountUsers func() (int64, error) + DeletePageviews func([]*models.Pageview) error + DeleteSite func(s *models.Site) error + DeleteUser func(*models.User) error + GetAggregatedPageStatsPageviews func(int64, time.Time, time.Time) (int64, error) + GetAggregatedReferrerStatsPageviews func(int64, time.Time, time.Time) (int64, error) + GetAggregatedSiteStats func(int64, time.Time, time.Time) (*models.SiteStats, error) + GetPageStats func(int64, time.Time, int64, int64) (*models.PageStats, error) + GetPageview func(string) (*models.Pageview, error) + GetProcessablePageviews func() ([]*models.Pageview, error) + GetRealtimeVisitorCount func(int64) (int64, error) + GetReferrerStats func(int64, time.Time, int64, int64) (*models.ReferrerStats, error) + GetSite func(id int64) (*models.Site, error) + GetSiteStats func(int64, time.Time) (*models.SiteStats, error) + GetSites func() ([]*models.Site, error) + GetUser func(int64) (*models.User, error) + GetUserByEmail func(string) (*models.User, error) + Health func() error + HostnameID func(name string) (int64, error) + InsertPageviews func([]*models.Pageview) error + PathnameID func(name string) (int64, error) + SavePageStats func(*models.PageStats) error + SaveReferrerStats func(*models.ReferrerStats) error + SaveSite func(s *models.Site) error + SaveSiteStats func(*models.SiteStats) error + SaveUser func(*models.User) error + SelectAggregatedPageStats func(int64, time.Time, time.Time, int64) ([]*models.PageStats, error) + SelectAggregatedReferrerStats func(int64, time.Time, time.Time, int64) ([]*models.ReferrerStats, error) + SelectSiteStats func(int64, time.Time, time.Time) ([]*models.SiteStats, error) + UpdatePageviews func([]*models.Pageview) error + func New(c *sqlstore.Config) Datastore