segment

package
v0.75.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInfo

type EventInfo struct {
	EventName      types.EventType
	Detail         string
	AdditionalInfo map[string]interface{} `json:"-"`
}

func NewEventInfo

func NewEventInfo(eventType types.EventType, detail string) *EventInfo

func (*EventInfo) WithAdditionalInfo added in v0.68.5

func (e *EventInfo) WithAdditionalInfo(k string, v interface{})

type Segment

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

func New

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

func NewNoOp added in v0.68.8

func NewNoOp() *Segment

func NewWithURL added in v0.68.8

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

func (*Segment) SetInstallID added in v0.68.5

func (client *Segment) SetInstallID(i string)

func (*Segment) Track

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

func (*Segment) TrackInfo

func (client *Segment) TrackInfo(eventInfo *EventInfo) *analytics.Track

Jump to

Keyboard shortcuts

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