Versions in this module Expand all Collapse all v1 v1.4.2 Nov 10, 2020 Changes in this version + type AllTotals struct + AllTotalUniqueUTC int + func (w *AllTotals) GetData(ctx context.Context, a Args) (err error) + func (w *AllTotals) SetHTML(h template.HTML) + func (w AllTotals) Clone() Widget + func (w AllTotals) HTML() template.HTML + func (w AllTotals) Name() string + func (w AllTotals) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w AllTotals) Type() string + type Args struct + AsText bool + Daily bool + End time.Time + Filter string + ForcedDaily bool + ShowRefs string + Start time.Time + type Browsers struct + Browsers goatcounter.Stats + func (w *Browsers) GetData(ctx context.Context, a Args) (err error) + func (w *Browsers) SetHTML(h template.HTML) + func (w Browsers) Clone() Widget + func (w Browsers) HTML() template.HTML + func (w Browsers) Name() string + func (w Browsers) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Browsers) Type() string + type List []Widget + func NewList(want []string) (List, error) + func (l List) Get(name string) Widget + func (l List) Refs() goatcounter.Stats + func (l List) Totals() (total, unique, allUnique, max int) + type Locations struct + LocStat goatcounter.Stats + func (w *Locations) GetData(ctx context.Context, a Args) (err error) + func (w *Locations) SetHTML(h template.HTML) + func (w Locations) Clone() Widget + func (w Locations) HTML() template.HTML + func (w Locations) Name() string + func (w Locations) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Locations) Type() string + type Max struct + Max int + func (w *Max) GetData(ctx context.Context, a Args) (err error) + func (w *Max) SetHTML(h template.HTML) + func (w Max) Clone() Widget + func (w Max) HTML() template.HTML + func (w Max) Name() string + func (w Max) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Max) Type() string + type Pages struct + Display int + More bool + Pages goatcounter.HitStats + UniqueDisplay int + func (w *Pages) GetData(ctx context.Context, a Args) (err error) + func (w *Pages) SetHTML(h template.HTML) + func (w Pages) Clone() Widget + func (w Pages) HTML() template.HTML + func (w Pages) Name() string + func (w Pages) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Pages) Type() string + type Refs struct + Refs goatcounter.Stats + func (w *Refs) GetData(ctx context.Context, a Args) (err error) + func (w *Refs) SetHTML(h template.HTML) + func (w Refs) Clone() Widget + func (w Refs) HTML() template.HTML + func (w Refs) Name() string + func (w Refs) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Refs) Type() string + type SharedData struct + AllTotalUniqueUTC int + Args Args + Max int + Refs goatcounter.Stats + Site *goatcounter.Site + Total int + TotalUnique int + type Sizes struct + SizeStat goatcounter.Stats + func (w *Sizes) GetData(ctx context.Context, a Args) (err error) + func (w *Sizes) SetHTML(h template.HTML) + func (w Sizes) Clone() Widget + func (w Sizes) HTML() template.HTML + func (w Sizes) Name() string + func (w Sizes) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Sizes) Type() string + type Systems struct + Systems goatcounter.Stats + func (w *Systems) GetData(ctx context.Context, a Args) (err error) + func (w *Systems) SetHTML(h template.HTML) + func (w Systems) Clone() Widget + func (w Systems) HTML() template.HTML + func (w Systems) Name() string + func (w Systems) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Systems) Type() string + type Toprefs struct + TopRefs goatcounter.Stats + func (w *Toprefs) GetData(ctx context.Context, a Args) (err error) + func (w *Toprefs) SetHTML(h template.HTML) + func (w Toprefs) Clone() Widget + func (w Toprefs) HTML() template.HTML + func (w Toprefs) Name() string + func (w Toprefs) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Toprefs) Type() string + type Totalpages struct + Max int + Total goatcounter.HitStat + func (w *Totalpages) GetData(ctx context.Context, a Args) (err error) + func (w *Totalpages) SetHTML(h template.HTML) + func (w Totalpages) Clone() Widget + func (w Totalpages) HTML() template.HTML + func (w Totalpages) Name() string + func (w Totalpages) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Totalpages) Type() string + type Totals struct + Total int + TotalUnique int + func (w *Totals) GetData(ctx context.Context, a Args) (err error) + func (w *Totals) SetHTML(h template.HTML) + func (w Totals) Clone() Widget + func (w Totals) HTML() template.HTML + func (w Totals) Name() string + func (w Totals) TemplateData(ctx context.Context, shared SharedData) (string, interface{}) + func (w Totals) Type() string + type Widget interface + Clone func() Widget + GetData func(context.Context, Args) error + HTML func() template.HTML + Name func() string + SetHTML func(template.HTML) + TemplateData func(context.Context, SharedData) (string, interface{}) + Type func() string + func New(name string) (Widget, error) Other modules containing this package zgo.at/goatcounter/v2