telemetry

package
v3.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Availability added in v3.3.1

type Availability interface {
	IsTelemetryAvailable(ctx context.Context) bool
}

type Heartbeat

type Heartbeat struct {
	// contains filtered or unexported fields
}

func NewHeartbeat

func NewHeartbeat(manager HeartbeatManager, imapPort, smtpPort int, cacheDir, keychain string) Heartbeat

func (*Heartbeat) SetAutoStart

func (heartbeat *Heartbeat) SetAutoStart(val bool)

func (*Heartbeat) SetAutoUpdate

func (heartbeat *Heartbeat) SetAutoUpdate(val bool)

func (*Heartbeat) SetBeta

func (heartbeat *Heartbeat) SetBeta(val updater.Channel)

func (*Heartbeat) SetCacheLocation

func (heartbeat *Heartbeat) SetCacheLocation(val string)

func (*Heartbeat) SetDoh

func (heartbeat *Heartbeat) SetDoh(val bool)

func (*Heartbeat) SetIMAPConnectionMode

func (heartbeat *Heartbeat) SetIMAPConnectionMode(val bool)

func (*Heartbeat) SetIMAPPort

func (heartbeat *Heartbeat) SetIMAPPort(val int)

func (*Heartbeat) SetKeyChainPref

func (heartbeat *Heartbeat) SetKeyChainPref(val string)

func (*Heartbeat) SetNbAccount

func (heartbeat *Heartbeat) SetNbAccount(val int)

func (*Heartbeat) SetPrevVersion

func (heartbeat *Heartbeat) SetPrevVersion(val string)

func (*Heartbeat) SetRollout

func (heartbeat *Heartbeat) SetRollout(val float64)

func (*Heartbeat) SetSMTPConnectionMode

func (heartbeat *Heartbeat) SetSMTPConnectionMode(val bool)

func (*Heartbeat) SetSMTPPort

func (heartbeat *Heartbeat) SetSMTPPort(val int)

func (*Heartbeat) SetShowAllMail

func (heartbeat *Heartbeat) SetShowAllMail(val bool)

func (*Heartbeat) SetSplitMode

func (heartbeat *Heartbeat) SetSplitMode(val bool)

func (*Heartbeat) TrySending

func (heartbeat *Heartbeat) TrySending(ctx context.Context)

type HeartbeatData

type HeartbeatData struct {
	MeasurementGroup string
	Event            string
	Values           HeartbeatValues
	Dimensions       HeartbeatDimensions
}

type HeartbeatDimensions

type HeartbeatDimensions struct {
	AutoUpdate         string `json:"auto_update"`
	AutoStart          string `json:"auto_start"`
	Beta               string `json:"beta"`
	Doh                string `json:"doh"`
	SplitMode          string `json:"split_mode"`
	ShowAllMail        string `json:"show_all_mail"`
	IMAPConnectionMode string `json:"imap_connection_mode"`
	SMTPConnectionMode string `json:"smtp_connection_mode"`
	IMAPPort           string `json:"imap_port"`
	SMTPPort           string `json:"smtp_port"`
	CacheLocation      string `json:"cache_location"`
	KeychainPref       string `json:"keychain_pref"`
	PrevVersion        string `json:"prev_version"`
	Rollout            string `json:"rollout"`
}

type HeartbeatManager

type HeartbeatManager interface {
	Availability
	SendHeartbeat(ctx context.Context, heartbeat *HeartbeatData) bool
	GetLastHeartbeatSent() time.Time
	SetLastHeartbeatSent(time.Time) error
	GetHeartbeatPeriodicInterval() time.Duration
}

type HeartbeatValues

type HeartbeatValues struct {
	NbAccount int `json:"nb_account"`
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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