Files
proton-bridge/internal/bridge/types.go
2022-11-16 12:26:09 +01:00

39 lines
794 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
}
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
}