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 ProtocolClient
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 ProtocolClient ¶
type ProtocolClient struct { URI *url.URL Invitations chan protocol.SessionInvitation // contains filtered or unexported fields }
func NewProtocolClient ¶
func NewProtocolClient(uri *url.URL, certs []tls.Certificate, invitations chan protocol.SessionInvitation) *ProtocolClient
func (*ProtocolClient) Latency ¶
func (c *ProtocolClient) Latency() time.Duration
func (*ProtocolClient) Serve ¶
func (c *ProtocolClient) Serve()
func (*ProtocolClient) StatusOK ¶
func (c *ProtocolClient) StatusOK() bool
func (*ProtocolClient) Stop ¶
func (c *ProtocolClient) Stop()
func (*ProtocolClient) String ¶
func (c *ProtocolClient) String() string
Click to show internal directories.
Click to hide internal directories.