segment

package
v0.0.0-...-c70a42a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AccountActivated = "account activated"

Variables

This section is empty.

Functions

func Hash

func Hash(username string) string

Hashes the given username to anonymize the data sent to Segment (and subsequently Woopra)

Note: implementation of the Hash MUST match with the existing ones of CRW and Web/Dev Console so that metrics can be correlated in Woopra See https://github.com/che-incubator/che-workspace-telemetry-client/pull/68/files

Types

type Client

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

func DefaultClient

func DefaultClient(key string) (*Client, error)

func NewClient

func NewClient(cl analytics.Client) *Client

func (*Client) Client

func (c *Client) Client() analytics.Client

Client returns the underlying client. For testing purpose only, when the underlying client is a fake impl.

func (*Client) Close

func (c *Client) Close() error

func (*Client) TrackAccountActivation

func (c *Client) TrackAccountActivation(username, userID, accountID string)

Jump to

Keyboard shortcuts

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