analytics

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MachineID

func MachineID() string

MachineID returns unique user machine ID

func SendAnonymousAPIInfo added in v1.0.6

func SendAnonymousAPIInfo(path string) error

SendAnonymousCmdInfo will send CLI event to GA

func SendAnonymousCmdInfo added in v1.0.6

func SendAnonymousCmdInfo(cmd *cobra.Command) error

SendAnonymousCmdInfo will send CLI event to GA

func SendAnonymousInfo

func SendAnonymousInfo()

SendAnonymousInfo will send event to GA

Types

type Event added in v0.11.2

type Event struct {
	Name   string `json:"name"`
	Params Params `json:"params,omitempty"`
}

type Params added in v0.11.2

type Params struct {
	EventCount       int64  `json:"event_count,omitempty"`
	EventCategory    string `json:"even_category,omitempty"`
	AppVersion       string `json:"app_version,omitempty"`
	AppName          string `json:"app_name,omitempty"`
	CustomDimensions string `json:"custom_dimensions,omitempty"`
	DataSource       string `json:"data_source,omitempty"`
}

type Payload added in v0.11.2

type Payload struct {
	ClientID string  `json:"client_id"`
	Events   []Event `json:"events"`
}

Jump to

Keyboard shortcuts

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