GODT-1657: More stable sync, with some tests

This commit is contained in:
James Houlahan
2022-10-09 23:05:52 +02:00
parent e7526f2e78
commit 509a767e50
41 changed files with 883 additions and 779 deletions

View File

@ -1,9 +1,6 @@
package bridge
import (
"context"
"net"
"github.com/ProtonMail/proton-bridge/v2/internal/updater"
)
@ -21,17 +18,15 @@ type Identifier interface {
SetPlatform(platform string)
}
type TLSReporter interface {
GetTLSIssueCh() <-chan struct{}
}
type ProxyDialer interface {
DialTLSContext(ctx context.Context, network, addr string) (net.Conn, error)
type ProxyController interface {
AllowProxy()
DisallowProxy()
}
type TLSReporter interface {
GetTLSIssueCh() <-chan struct{}
}
type Autostarter interface {
Enable() error
Disable() error