mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
40 lines
809 B
Go
40 lines
809 B
Go
package bridge
|
|
|
|
import (
|
|
"github.com/ProtonMail/proton-bridge/v2/internal/updater"
|
|
)
|
|
|
|
type Locator interface {
|
|
ProvideSettingsPath() (string, error)
|
|
ProvideLogsPath() (string, error)
|
|
GetLicenseFilePath() string
|
|
GetDependencyLicensesLink() string
|
|
Clear() error
|
|
}
|
|
|
|
type Identifier interface {
|
|
GetUserAgent() string
|
|
HasClient() bool
|
|
SetClient(name, version string)
|
|
SetPlatform(platform string)
|
|
}
|
|
|
|
type ProxyController interface {
|
|
AllowProxy()
|
|
DisallowProxy()
|
|
}
|
|
|
|
type TLSReporter interface {
|
|
GetTLSIssueCh() <-chan struct{}
|
|
}
|
|
|
|
type Autostarter interface {
|
|
Enable() error
|
|
Disable() error
|
|
}
|
|
|
|
type Updater interface {
|
|
GetVersionInfo(downloader updater.Downloader, channel updater.Channel) (updater.VersionInfo, error)
|
|
InstallUpdate(downloader updater.Downloader, update updater.VersionInfo) error
|
|
}
|