telemetry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client sends the telemetry.

func NewClient

func NewClient() *Client

NewClient creates a new Client.

func (*Client) SendTelemetry

func (c *Client) SendTelemetry(ctx context.Context, cmd *cobra.Command, cmdErr error) error

SendTelemetry sends telemetry data to the telemetry server.

type RequestV1

type RequestV1 struct {
	Version     string `json:"version"`
	GOOS        string `json:"goos"`
	GOARCH      string `json:"goarch"`
	Cmd         string `json:"cmd"`
	CmdErrClass string `json:"cmderrclass"`
	Test        bool   `json:"test" gorm:"-"`
}

RequestV1 holds the information to be sent to the telemetry server.

func (*RequestV1) IsTest

func (r *RequestV1) IsTest() bool

IsTest checks if the request is used for testing.

Jump to

Keyboard shortcuts

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