segment

package
v0.68.7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 6 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 MockSegmentClient added in v0.68.5

type MockSegmentClient struct {
	EnqueueCallCount int
	MessageQueued    []analytics.Track
	IsCloseCalled    bool
}

func (MockSegmentClient) Close added in v0.68.5

func (m MockSegmentClient) Close() error

func (*MockSegmentClient) Enqueue added in v0.68.5

func (m *MockSegmentClient) Enqueue(msg analytics.Message) error

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 NewWithClient added in v0.68.5

func NewWithClient(client analytics.Client, accountID int, region string, isProxyConfigured bool) *Segment

func (*Segment) Close added in v0.68.5

func (client *Segment) Close()

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