Documentation ¶
Index ¶
- func GetInvitationFromRelay(uri *url.URL, id syncthingprotocol.DeviceID, certs []tls.Certificate) (protocol.SessionInvitation, error)
- func JoinSession(invitation protocol.SessionInvitation) (net.Conn, error)
- func TestRelay(uri *url.URL, certs []tls.Certificate, sleep time.Duration, times int) bool
- type RelayClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInvitationFromRelay ¶
func GetInvitationFromRelay(uri *url.URL, id syncthingprotocol.DeviceID, certs []tls.Certificate) (protocol.SessionInvitation, error)
func JoinSession ¶
func JoinSession(invitation protocol.SessionInvitation) (net.Conn, error)
Types ¶
type RelayClient ¶
type RelayClient interface { Serve() Stop() StatusOK() bool Latency() time.Duration String() string Invitations() chan protocol.SessionInvitation URI() *url.URL }
func NewClient ¶
func NewClient(uri *url.URL, certs []tls.Certificate, invitations chan protocol.SessionInvitation) (RelayClient, error)
Click to show internal directories.
Click to hide internal directories.