Versions in this module Expand all Collapse all v0 v0.1.2 Nov 1, 2026 v0.1.1 Oct 27, 2026 v0.1.0 Oct 27, 2026retracted Changes in this version + func Module(opts ...Option) webthings.Module + type Bar struct + Date string + Height int + Views int + Visitors int + type Count struct + Name string + Views int + Visitors int + type DashboardView struct + Bars []Bar + Days int + Devices []Row + From string + Locales []Row + Pages []Row + Ranges []RangeLink + Referrers []Row + Settings *form.RenderModel + SettingsErrors form.FieldErrors + Title string + To string + Views int + Visitors int + type Day struct + Date string + Views int + Visitors int + type Option func(*options) + func Named(key, title string) Option + type Page struct + Path string + Title string + Views int + Visitors int + type RangeLink struct + Active bool + Days int + URL string + type Report struct + Daily []Day + Days int + Devices []Count + Locales []Count + Pages []Page + Referrers []Count + Views int + Visitors int + type Row struct + Detail string + Name string + Share int + URL string + Views int + Visitors int + type Service struct + func Of(app *webthings.App, key string) *Service + func (s *Service) Flush(ctx context.Context) error + func (s *Service) Popular(ctx context.Context, locale string, limit, days int) ([]Page, error) + func (s *Service) PopularIn(ctx context.Context, locale, within string, limit, days int) ([]Page, error) + func (s *Service) Prune(ctx context.Context) error + func (s *Service) Report(ctx context.Context, days int) (Report, error) + func (s *Service) Retention(ctx context.Context) (int, error) + func (s *Service) SetRetention(ctx context.Context, days int) error + func (s *Service) Views(ctx context.Context, path string) (int, error)