ur

package
v1.2.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 3

Current version number of the usage report, for acceptance purposes. If fields are added or changed this integer must be incremented so that users are prompted for acceptance of the new report.

Variables

View Source
var StartTime = time.Now()

Functions

func CpuBench

func CpuBench(iterations int, duration time.Duration, useWeakHash bool) float64

CpuBench returns CPU performance as a measure of single threaded SHA-256 MiB/s

Types

type Service

type Service struct {
	suture.Service
	// contains filtered or unexported fields
}

func New

func New(cfg config.Wrapper, m model.Model, connectionsService connections.Service, noUpgrade bool) *Service

func (*Service) CommitConfiguration

func (s *Service) CommitConfiguration(from, to config.Configuration) bool

func (*Service) ReportData

func (s *Service) ReportData() map[string]interface{}

ReportData returns the data to be sent in a usage report with the currently configured usage reporting version.

func (*Service) ReportDataPreview

func (s *Service) ReportDataPreview(urVersion int) map[string]interface{}

ReportDataPreview returns a preview of the data to be sent in a usage report with the given version.

func (*Service) String

func (*Service) String() string

func (*Service) UptimeS

func (s *Service) UptimeS() int

func (*Service) VerifyConfiguration

func (s *Service) VerifyConfiguration(from, to config.Configuration) error

Jump to

Keyboard shortcuts

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