telemetry

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

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
}

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