metadata

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveLicense

func SaveLicense(license License)

Types

type License

type License struct {
	Key      *string      `yaml:"k"`
	Username *string      `yaml:"u"`
	Company  *string      `yaml:"c"`
	Type     *LicenseType `yaml:"t"`
	Valid    bool         `yaml:"v"`
}

func GetLicense

func GetLicense() *License

type LicenseType

type LicenseType rune
const (
	TypePersonal   LicenseType = 0
	TypeCommercial LicenseType = 1
)

type Statistics

type Statistics struct {
	Version         string
	OS              string
	WindowWidth     int            `yaml:"ww"`
	WindowHeight    int            `yaml:"wh"`
	LaunchCount     int            `yaml:"lc"`
	UsageTime       int            `yaml:"ut"`
	ComponentsCount map[string]int `yaml:"cc"`
}

Statistics represents anonymous usage data, which we collect for analyses and improvements User can disable it, along with crash reports, using --disable-telemetry flag

func GetStatistics

func GetStatistics(cfg *config.Config) *Statistics

func PersistStatistics

func PersistStatistics(config *config.Config, uptime time.Duration) *Statistics

Jump to

Keyboard shortcuts

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