model

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Application    = "oasdiff"
	KeyEvents      = "events"
	EnvNoTelemetry = "OASDIFF_NO_TELEMETRY"
	DefaultTimeout = time.Millisecond * 700
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Telemetry

type Telemetry struct {
	Id                 string            `json:"id"`
	Time               time.Time         `json:"time"`
	MachineId          string            `json:"machine_id"`
	Runtime            string            `json:"runtime"`  // darwin/windows
	Platform           string            `json:"platform"` // docker/github-action
	Command            string            `json:"command"`
	Args               []string          `json:"args"`
	Flags              map[string]string `json:"flags"`
	Application        string            `json:"application"`
	ApplicationVersion string            `json:"application_version"`
}

func NewDefaultTelemetry added in v0.1.1

func NewDefaultTelemetry(app string, appVersion string, cmd string, args []string, flags map[string]string) *Telemetry

func NewTelemetry added in v0.0.4

func NewTelemetry(app string, appVersion string, cmd string, args []string, flags map[string]string,
	machineId string, platform string) *Telemetry

Jump to

Keyboard shortcuts

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