Documentation ¶
Index ¶
- Constants
- Variables
- func CpuBench(ctx context.Context, iterations int, duration time.Duration, useWeakHash bool) float64
- type Service
- func (s *Service) CommitConfiguration(from, to config.Configuration) bool
- func (s *Service) ReportData(ctx context.Context) (*contract.Report, error)
- func (s *Service) ReportDataPreview(ctx context.Context, urVersion int) (*contract.Report, error)
- func (*Service) String() string
- func (s *Service) UptimeS() int
- func (s *Service) VerifyConfiguration(from, to config.Configuration) error
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 ¶
Types ¶
type Service ¶
func (*Service) CommitConfiguration ¶
func (s *Service) CommitConfiguration(from, to config.Configuration) bool
func (*Service) ReportData ¶
ReportData returns the data to be sent in a usage report with the currently configured usage reporting version.
func (*Service) ReportDataPreview ¶
ReportDataPreview returns a preview of the data to be sent in a usage report with the given version.
func (*Service) VerifyConfiguration ¶
func (s *Service) VerifyConfiguration(from, to config.Configuration) error
Click to show internal directories.
Click to hide internal directories.