analytics

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ERROR   = "error"
	HELP    = "help"
	SUCCESS = "success"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) SendCommandCompletedEvent

func (c *Client) SendCommandCompletedEvent(outcome string)

func (*Client) SendCommandRunEvent

func (c *Client) SendCommandRunEvent(properties map[string]interface{})

func (*Client) SendSetupFlagToggledEvent

func (c *Client) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)

func (*Client) SendSetupSDKSelectedEvent

func (c *Client) SendSetupSDKSelectedEvent(sdk string)

func (*Client) SendSetupStepStartedEvent

func (c *Client) SendSetupStepStartedEvent(step string)

func (*Client) Wait

func (a *Client) Wait()

type ClientFn

type ClientFn struct {
	ID      string
	Version string
}

func (ClientFn) Tracker

func (fn ClientFn) Tracker(accessToken string, baseURI string, optOut bool) Tracker

type LogClient added in v1.5.0

type LogClient struct{}

func (*LogClient) SendCommandCompletedEvent added in v1.5.0

func (c *LogClient) SendCommandCompletedEvent(outcome string)

func (*LogClient) SendCommandRunEvent added in v1.5.0

func (c *LogClient) SendCommandRunEvent(properties map[string]interface{})

func (*LogClient) SendSetupFlagToggledEvent added in v1.5.0

func (c *LogClient) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)

func (*LogClient) SendSetupSDKSelectedEvent added in v1.5.0

func (c *LogClient) SendSetupSDKSelectedEvent(sdk string)

func (*LogClient) SendSetupStepStartedEvent added in v1.5.0

func (c *LogClient) SendSetupStepStartedEvent(step string)

func (*LogClient) Wait added in v1.5.0

func (a *LogClient) Wait()

type LogClientFn added in v1.5.0

type LogClientFn struct{}

func (LogClientFn) Tracker added in v1.5.0

func (fn LogClientFn) Tracker(_ string, _ string, _ bool) Tracker

type MockTracker

type MockTracker struct {
	mock.Mock
	ID string
}

func MockedTracker

func MockedTracker(name string, action string, flags []string, outcome string) *MockTracker

func (*MockTracker) SendCommandCompletedEvent

func (m *MockTracker) SendCommandCompletedEvent(outcome string)

func (*MockTracker) SendCommandRunEvent

func (m *MockTracker) SendCommandRunEvent(properties map[string]interface{})

func (*MockTracker) SendSetupFlagToggledEvent

func (m *MockTracker) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)

func (*MockTracker) SendSetupSDKSelectedEvent

func (m *MockTracker) SendSetupSDKSelectedEvent(sdk string)

func (*MockTracker) SendSetupStepStartedEvent

func (m *MockTracker) SendSetupStepStartedEvent(step string)

func (*MockTracker) Wait

func (a *MockTracker) Wait()

type NoopClient

type NoopClient struct{}

func (*NoopClient) SendCommandCompletedEvent

func (c *NoopClient) SendCommandCompletedEvent(outcome string)

func (*NoopClient) SendCommandRunEvent

func (c *NoopClient) SendCommandRunEvent(properties map[string]interface{})

func (*NoopClient) SendSetupFlagToggledEvent

func (c *NoopClient) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)

func (*NoopClient) SendSetupSDKSelectedEvent

func (c *NoopClient) SendSetupSDKSelectedEvent(sdk string)

func (*NoopClient) SendSetupStepStartedEvent

func (c *NoopClient) SendSetupStepStartedEvent(step string)

func (*NoopClient) Wait

func (a *NoopClient) Wait()

type NoopClientFn

type NoopClientFn struct{}

func (NoopClientFn) Tracker

func (fn NoopClientFn) Tracker() TrackerFn

type Tracker

type Tracker interface {
	SendCommandRunEvent(properties map[string]interface{})
	SendCommandCompletedEvent(outcome string)
	SendSetupStepStartedEvent(step string)
	SendSetupSDKSelectedEvent(sdk string)
	SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)
	Wait()
}

type TrackerFn

type TrackerFn func(accessToken string, baseURI string, optOut bool) Tracker

Jump to

Keyboard shortcuts

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