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

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