analytics

package
v2.0.0-rc1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO(nick): verify these fit best practices (casing, etc.)
	TraitVersion = "aws-okta-version"
	// TODO(nick): not clear the difference between a track trait
	// and a event property
	PropertyVersion        = "aws-okta-version"
	PropertyKeyringBackend = "backend"

	EventRanCommand     = "Ran Command"
	PropertyCommandName = "command"
	PropertyProfileName = "profile"
)

Variables

View Source
var AllProperties = map[string]struct{}{
	PropertyVersion:        struct{}{},
	PropertyKeyringBackend: struct{}{},
	PropertyCommandName:    struct{}{},
	PropertyProfileName:    struct{}{},
}

Functions

This section is empty.

Types

type Client

type Client struct {

	// global properties
	UserId         string
	KeyringBackend string
	Version        string
	// contains filtered or unexported fields
}

Client is a convenience wrapper an analytics-go Client. A zero value client will no-op all its methods

func New

func New(writeKey string) Client

New creates a new Client. Global properties should be set on returned Client.

func (Client) Close

func (a Client) Close()

func (Client) Identify

func (a Client) Identify()

func (Client) TrackRanCommand

func (a Client) TrackRanCommand(commandName string, extraProps ...[2]string)

Jump to

Keyboard shortcuts

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