analytics

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DEFERRED_REQUEST_COMMAND = "send-deferred-request"

Variables

This section is empty.

Functions

func GetProcessDuration

func GetProcessDuration() int64

GetProcessDuration returns the process duration

func SetConfigPath

func SetConfigPath(path string)

SetConfigPath sets the config patch

Types

type Analytics

type Analytics interface {
	Enabled() bool
	Disable() error
	Enable() error
	SendEvent(eventName string, eventProperties map[string]interface{}, userProperties map[string]interface{}) error
	SendCommandEvent(commandArgs []string, commandError error, commandDuration int64) error
	ReportPanics()
	Identify(identifier string) error
	SetVersion(version string)
	SetIdentifyProvider(getIdentity func() string)
	HandleDeferredRequest() error
}

Analytics is an interface for sending data to an analytics service

func GetAnalytics

func GetAnalytics() (Analytics, error)

GetAnalytics retrieves the analytics client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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