Versions in this module Expand all Collapse all v0 v0.0.3 Apr 25, 2018 Changes in this version + type Analytics struct + func New(toggle Toggle, client analytics.Client, version string) *Analytics + func (a *Analytics) Close() + func (a *Analytics) Event(event string, data map[string]interface{}) error + func (a *Analytics) PromptOptIn(Exit chan struct{}, ui UI) error + type Toggle interface + Defined func() bool + Get func() bool + Set func(value bool) error v0.0.2 Apr 19, 2018 Changes in this version + const ERROR + const START_BEGIN + const START_END + const STOP + const UNINSTALL + func PromptOptIn(conf config.Config, ui UI) error + func SetTelemetryState(response string, conf config.Config) error + func TrackEvent(event string, data map[string]interface{}, client analytics.Client) error + type AnalyticsEvent struct + Data map[string]interface{} + Event string + OS string + SegClient ClientInterface + UserId string + Version string + func (s *AnalyticsEvent) SendAnalytics() error + type ClientInterface interface + Enqueue func(message analytics.Message) error + type UI interface + Ask func(prompt string) (answer string) + Say func(message string, args ...interface{})