Documentation
¶
Overview ¶
Package bridge provides core functionality of Bridge app.
Index ¶
Constants ¶
View Source
const Credits = "" /* 1980-byte string literal not displayed */
View Source
const (
Host = "127.0.0.1"
)
Host settings.
View Source
const ReleaseFixedBugs = `• AppleMail crashes (timestamp related)
• Encoding errors
• Installation issues on linux
`
View Source
const ReleaseNotes = `• Support read confirmations
• Adding GPLv3 licence button to the GUI
• Improved testing
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
func New ¶
func New( config Configer, pref PreferenceProvider, panicHandler users.PanicHandler, eventListener listener.Listener, clientManager users.ClientManager, credStorer users.CredentialsStorer, ) *Bridge
func (*Bridge) GetCurrentClient ¶
GetCurrentClient returns currently connected client (e.g. Thunderbird).
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) SetCurrentClient ¶
SetCurrentClient updates client info (e.g. Thunderbird) and sets the user agent on pmapi. By default no client is used, IMAP has to detect it on first login.
func (*Bridge) SetCurrentOS ¶
SetCurrentOS updates OS and sets the user agent on pmapi. By default we use `runtime.GOOS`, but this can be overridden in case of better detection.
type Configer ¶
type Configer interface { users.Configer StoreFactoryConfiger }
type PreferenceProvider ¶
type StoreFactoryConfiger ¶
Click to show internal directories.
Click to hide internal directories.