receiver

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectRendezvous

func ConnectRendezvous(addr string) (conn.Rendezvous, error)

ConnectRendezvous makes the initial connection to the rendezvous server.

func Receive

func Receive(ctx context.Context, tc conn.Transfer, dst io.Writer, msgs ...chan interface{}) error

Receive receives the payload over the transfer connection and writes it into the provided destination. The Transfer can either be direct or using a relay. The msgs channel communicates information about the receiving process while running.

func SecureConnection

func SecureConnection(ctx context.Context, rc conn.Rendezvous, pass string) (conn.Transfer, error)

SecureConnection performs the cryptographic handshake to resolve a secure connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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