client

package
v0.12.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2015 License: MPL-2.0 Imports: 13 Imported by: 6

Documentation

Index

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)

func TestRelay

func TestRelay(uri *url.URL, certs []tls.Certificate, sleep time.Duration, times int) bool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL