telemetry

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TELEMETRY_ID  = "MC198501010915"
	TELEMETRY_URL = "https://telemetry.mycontroller.org/event"
	API_VERSION   = "1"
)

Variables

This section is empty.

Functions

func ReportTelemetryData

func ReportTelemetryData(ctx context.Context)

reports telemetry data

Types

type Application

type Application struct {
	Version      string   `json:"version"`
	GitCommit    string   `json:"gitCommit"`
	BuildDate    string   `json:"buildDate"`
	Platform     string   `json:"platform"`
	Arch         string   `json:"arch"`
	GoLang       string   `json:"goLang"`
	RunningIn    string   `json:"runningIn"`
	Uptime       uint64   `json:"uptime"`
	RunningSince string   `json:"runningSince"`
	Gateways     []string `json:"gateways"`
	Handlers     []string `json:"handlers"`
}

Application details

type Location

type Location struct {
	City    string `json:"city"`
	Region  string `json:"region"`
	Country string `json:"country"`
}

Location details

type Payload

type Payload struct {
	APIVersion  string      `json:"apiVersion"`
	TelemetryID string      `json:"telemetryId"`
	UserID      string      `json:"userId"`
	Application Application `json:"application"`
	Location    Location    `json:"location"`
}

telemetry payload

Jump to

Keyboard shortcuts

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