Documentation ¶
Overview ¶
server.go defines the sender webserver for the Portal file transfer
Index ¶
- Constants
- func ConnectRendezvous(ctx context.Context, addr string) (conn.Rendezvous, string, error)
- func SecureConnection(ctx context.Context, rc conn.Rendezvous, password string) (conn.Transfer, error)
- func Transfer(ctx context.Context, tc conn.Transfer, payload io.Reader, payloadSize int64, ...) error
Constants ¶
View Source
const MAX_CHUNK_BYTES = 1e6
View Source
const MAX_SEND_CHUNKS = 2e8
Variables ¶
This section is empty.
Functions ¶
func ConnectRendezvous ¶
ConnectRendezvous creates a connection with the rendezvous server and acquires a password associated with the connection
func SecureConnection ¶
func SecureConnection(ctx context.Context, rc conn.Rendezvous, password string) (conn.Transfer, error)
SecureConnection does the cryptographic handshake in order to resolve a secure channel to do file transfer over.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.