Documentation
¶
Overview ¶
Package stats counts the use of the demo and NSGo Player in the website's Umami, as pages of the site: the site's own pages are tagged "website", the demo's "demo" and the app's "app". An install carries a random ID kept in the storage, so that one install is one visitor. Builds of nsgo dev and test binaries report nothing, nor an app whose viewer turned it off (Options.On).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Tag tells the app apart, as "demo" or "app".
Tag string
// Page returns the page shown, its path under the site and its title;
// a pageview is sent each time it changes. It is read in an effect.
Page func() (path, title string)
// On reports whether the viewer leaves the statistics on, checked
// before each event; nil is always.
On func() bool
// Busy reports whether the app is in use though no page changed, as
// while a video plays; nil is never.
Busy func() bool
}
Options are what an app reports.