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
Click to show internal directories.
Click to hide internal directories.