cfanalytics

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ERROR = "error"
View Source
const START_BEGIN = "start_begin"
View Source
const START_END = "start_end"
View Source
const STOP = "stop"
View Source
const UNINSTALL = "uninstall"

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics added in v0.0.3

type Analytics struct {
	// contains filtered or unexported fields
}

func New added in v0.0.3

func New(toggle Toggle, client analytics.Client, version string) *Analytics

func (*Analytics) Close added in v0.0.3

func (a *Analytics) Close()

func (*Analytics) Event added in v0.0.3

func (a *Analytics) Event(event string, data map[string]interface{}) error

func (*Analytics) PromptOptIn added in v0.0.3

func (a *Analytics) PromptOptIn(Exit chan struct{}, ui UI) error

type Toggle added in v0.0.3

type Toggle interface {
	Defined() bool
	Get() bool
	Set(value bool) error
}

type UI

type UI interface {
	Ask(prompt string) (answer string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL