Documentation ¶
Index ¶
- type Availability
- type Heartbeat
- func (heartbeat *Heartbeat) SetAutoStart(val bool)
- func (heartbeat *Heartbeat) SetAutoUpdate(val bool)
- func (heartbeat *Heartbeat) SetBeta(val updater.Channel)
- func (heartbeat *Heartbeat) SetCacheLocation(val string)
- func (heartbeat *Heartbeat) SetDoh(val bool)
- func (heartbeat *Heartbeat) SetIMAPConnectionMode(val bool)
- func (heartbeat *Heartbeat) SetIMAPPort(val int)
- func (heartbeat *Heartbeat) SetKeyChainPref(val string)
- func (heartbeat *Heartbeat) SetNbAccount(val int)
- func (heartbeat *Heartbeat) SetPrevVersion(val string)
- func (heartbeat *Heartbeat) SetRollout(val float64)
- func (heartbeat *Heartbeat) SetSMTPConnectionMode(val bool)
- func (heartbeat *Heartbeat) SetSMTPPort(val int)
- func (heartbeat *Heartbeat) SetShowAllMail(val bool)
- func (heartbeat *Heartbeat) SetSplitMode(val bool)
- func (heartbeat *Heartbeat) TrySending(ctx context.Context)
- type HeartbeatData
- type HeartbeatDimensions
- type HeartbeatManager
- type HeartbeatValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Availability ¶ added in v3.3.1
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) SetAutoUpdate ¶
func (*Heartbeat) SetCacheLocation ¶
func (*Heartbeat) SetIMAPConnectionMode ¶
func (*Heartbeat) SetIMAPPort ¶
func (*Heartbeat) SetKeyChainPref ¶
func (*Heartbeat) SetNbAccount ¶
func (*Heartbeat) SetPrevVersion ¶
func (*Heartbeat) SetRollout ¶
func (*Heartbeat) SetSMTPConnectionMode ¶
func (*Heartbeat) SetSMTPPort ¶
func (*Heartbeat) SetShowAllMail ¶
func (*Heartbeat) SetSplitMode ¶
func (*Heartbeat) TrySending ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.