Documentation ¶
Overview ¶
Package receiver implements the messages receiver. It can be used both by the download and the upload subtests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDownloadReceiver ¶
StartDownloadReceiver starts the receiver in a background goroutine and returns the messages received from the client in the returned channel.
This receiver will not tolerate receiving binary messages. It will terminate early if such a message is received.
Liveness guarantee: the goroutine will always terminate after a MaxRuntime timeout, provided that the consumer will keep reading from the returned channel.
func StartUploadReceiver ¶
StartUploadReceiver is like StartDownloadReceiver except that it tolerates incoming binary messages, which are sent to cause network load, and therefore must not be rejected.
Types ¶
This section is empty.