segment

package
v0.68.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTypes = struct {
	InstallStarted          EventType
	AccountIDMissing        EventType
	APIKeyMissing           EventType
	RegionMissing           EventType
	UnableToConnect         EventType
	UnableToFetchLicenseKey EventType
	LicenseKeyFetchedOk     EventType
	UnableToOverrideClient  EventType
}{
	InstallStarted:          "InstallStarted",
	AccountIDMissing:        "AccountIDMissing",
	APIKeyMissing:           "APIKeyMissing",
	RegionMissing:           "RegionMissing",
	UnableToConnect:         "UnableToConnect",
	UnableToFetchLicenseKey: "UnableToFetchLicenseKey",
	LicenseKeyFetchedOk:     "LicenseKeyFetchedOk",
	UnableToOverrideClient:  "UnableToOverrideClient",
}

Functions

This section is empty.

Types

type EventInfo

type EventInfo struct {
	Detail string
}

func NewEventInfo

func NewEventInfo(detail string) *EventInfo

type EventType

type EventType string

type Segment

type Segment struct {
	analytics.Client
	// contains filtered or unexported fields
}

func New

func New(writeKey string, accountID int, region string, isProxyConfigured bool) *Segment

func (*Segment) Track

func (client *Segment) Track(eventName EventType) *analytics.Track

func (*Segment) TrackInfo

func (client *Segment) TrackInfo(eventName EventType, eventInfo interface{}) *analytics.Track

Jump to

Keyboard shortcuts

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