{"modulePath":"github.com/launchdarkly/ldcli","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package analytics\n\n## Constants\n\n```go\nconst (\n\tERROR   = \"error\"\n\tHELP    = \"help\"\n\tSUCCESS = \"success\"\n)\n```\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *Client) SendCommandCompletedEvent(outcome string)\n```\n\n```go\nfunc (c *Client) SendCommandRunEvent(properties map[string]interface{})\n```\n\n```go\nfunc (c *Client) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)\n```\n\n```go\nfunc (c *Client) SendSetupSDKSelectedEvent(sdk string)\n```\n\n```go\nfunc (c *Client) SendSetupStepStartedEvent(step string)\n```\n\n```go\nfunc (a *Client) Wait()\n```\n\n```go\ntype ClientFn struct {\n\tID      string\n\tVersion string\n}\n```\n\n```go\nfunc (fn ClientFn) Tracker(accessToken string, baseURI string, optOut bool) Tracker\n```\n\n```go\ntype LogClient struct{}\n```\n\n```go\nfunc (c *LogClient) SendCommandCompletedEvent(outcome string)\n```\n\n```go\nfunc (c *LogClient) SendCommandRunEvent(properties map[string]interface{})\n```\n\n```go\nfunc (c *LogClient) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)\n```\n\n```go\nfunc (c *LogClient) SendSetupSDKSelectedEvent(sdk string)\n```\n\n```go\nfunc (c *LogClient) SendSetupStepStartedEvent(step string)\n```\n\n```go\nfunc (a *LogClient) Wait()\n```\n\n```go\ntype LogClientFn struct{}\n```\n\n```go\nfunc (fn LogClientFn) Tracker(_ string, _ string, _ bool) Tracker\n```\n\n```go\ntype MockTracker struct {\n\tmock.Mock\n\tID string\n}\n```\n\n```go\nfunc MockedTracker(name string, action string, flags []string, outcome string) *MockTracker\n```\n\n```go\nfunc (m *MockTracker) SendCommandCompletedEvent(outcome string)\n```\n\n```go\nfunc (m *MockTracker) SendCommandRunEvent(properties map[string]interface{})\n```\n\n```go\nfunc (m *MockTracker) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)\n```\n\n```go\nfunc (m *MockTracker) SendSetupSDKSelectedEvent(sdk string)\n```\n\n```go\nfunc (m *MockTracker) SendSetupStepStartedEvent(step string)\n```\n\n```go\nfunc (a *MockTracker) Wait()\n```\n\n```go\ntype NoopClient struct{}\n```\n\n```go\nfunc (c *NoopClient) SendCommandCompletedEvent(outcome string)\n```\n\n```go\nfunc (c *NoopClient) SendCommandRunEvent(properties map[string]interface{})\n```\n\n```go\nfunc (c *NoopClient) SendSetupFlagToggledEvent(on bool, count int, duration_ms int64)\n```\n\n```go\nfunc (c *NoopClient) SendSetupSDKSelectedEvent(sdk string)\n```\n\n```go\nfunc (c *NoopClient) SendSetupStepStartedEvent(step string)\n```\n\n```go\nfunc (a *NoopClient) Wait()\n```\n\n```go\ntype NoopClientFn struct{}\n```\n\n```go\nfunc (fn NoopClientFn) Tracker() TrackerFn\n```\n\n```go\ntype Tracker interface {\n\tSendCommandRunEvent(properties map[string]interface{})\n\tSendCommandCompletedEvent(outcome string)\n\tSendSetupStepStartedEvent(step string)\n\tSendSetupSDKSelectedEvent(sdk string)\n\tSendSetupFlagToggledEvent(on bool, count int, duration_ms int64)\n\tWait()\n}\n```\n\n```go\ntype TrackerFn func(accessToken string, baseURI string, optOut bool) Tracker\n```\n\n","path":"github.com/launchdarkly/ldcli/internal/analytics","name":"analytics","synopsis":"","isRedistributable":true}
