Documentation ¶
Overview ¶
Package bridge provides core functionality of Bridge app.
Index ¶
- Constants
- type Bridge
- func (b *Bridge) GetKeychainApp() string
- func (b *Bridge) GetUpdateChannel() updater.UpdateChannel
- func (b *Bridge) ReportBug(osType, osVersion, description, accountName, address, emailClient string) error
- func (b *Bridge) SetKeychainApp(helper string)
- func (b *Bridge) SetUpdateChannel(channel updater.UpdateChannel) (needRestart bool, err error)
- type Cacher
- type Locator
- type SettingsProvider
- type Updater
- type Versioner
Constants ¶
View Source
const (
Host = "127.0.0.1"
)
Host settings.
View Source
const ReleaseFixedBugs = `• Fixed sending error caused by inconsistent use of upper and lower case in sender’s email address
`
View Source
const ReleaseNotes = `
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
func (*Bridge) GetKeychainApp ¶ added in v1.7.0
GetKeychainApp returns current keychain helper.
func (*Bridge) GetUpdateChannel ¶ added in v1.6.3
func (b *Bridge) GetUpdateChannel() updater.UpdateChannel
GetUpdateChannel returns currently set update channel.
func (*Bridge) ReportBug ¶
func (b *Bridge) ReportBug(osType, osVersion, description, accountName, address, emailClient string) error
ReportBug reports a new bug from the user.
func (*Bridge) SetKeychainApp ¶ added in v1.7.0
SetKeychainApp sets current keychain helper.
func (*Bridge) SetUpdateChannel ¶ added in v1.6.3
func (b *Bridge) SetUpdateChannel(channel updater.UpdateChannel) (needRestart bool, err error)
SetUpdateChannel switches update channel. Downgrading to previous version (by switching from early to stable, for example) requires clearing all data including update files due to possibility of inconsistency between versions and absence of backwards migration scripts.
type SettingsProvider ¶ added in v1.6.3
type Updater ¶ added in v1.6.3
type Updater interface { Check() (updater.VersionInfo, error) IsDowngrade(updater.VersionInfo) bool InstallUpdate(updater.VersionInfo) error }
Click to show internal directories.
Click to hide internal directories.