MCPcopy Create free account
hub / github.com/algolia/cli / SetUser

Method SetUser

pkg/telemetry/telemetry.go:212–216  ·  view source on GitHub ↗

SetUser sets the authenticated user identity on the CLIAnalyticsEventContext object

(userID, email, name string)

Source from the content-addressed store, hash-verified

210
211// SetUser sets the authenticated user identity on the CLIAnalyticsEventContext object
212func (e *CLIAnalyticsEventMetadata) SetUser(userID, email, name string) {
213 e.UserID = userID
214 e.Email = email
215 e.Name = name
216}
217
218// Identify tracks the user with the provided properties
219func (a *AnalyticsTelemetryClient) Identify(ctx context.Context) error {

Callers 6

TestSetUserFunction · 0.80
applyStoredIdentityFunction · 0.80
ExecuteFunction · 0.80

Calls

no outgoing calls