Documentation ¶
Index ¶
- func GetInvitationFromRelay(ctx context.Context, uri *url.URL, id syncthingprotocol.DeviceID, ...) (protocol.SessionInvitation, error)
- func JoinSession(ctx context.Context, invitation protocol.SessionInvitation) (net.Conn, error)
- func TestRelay(ctx context.Context, uri *url.URL, certs []tls.Certificate, ...) error
- type RelayClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInvitationFromRelay ¶
func GetInvitationFromRelay(ctx context.Context, uri *url.URL, id syncthingprotocol.DeviceID, certs []tls.Certificate, timeout time.Duration) (protocol.SessionInvitation, error)
func JoinSession ¶
Types ¶
type RelayClient ¶
type RelayClient interface { suture.Service Error() error 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, timeout time.Duration) (RelayClient, error)
Click to show internal directories.
Click to hide internal directories.