Documentation
¶
Overview ¶
Package quictest provides an in-process QUIC peer for tests: a TLS configuration for a self-signed server, and helpers to listen and dial on the loopback interface.
A QUIC stream is created implicitly by sending data on it, so a client that opens a stream must write before the server's AcceptStream returns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoStream = errors.New("no stream")
ErrNoStream is returned when a peer closes its stream without sending anything, so that AcceptStream never returns.
Functions ¶
func Listen ¶
Listen starts a QUIC listener on a loopback UDP socket and returns it together with the address it listens on.
func SelfSignedTLS ¶
SelfSignedTLS returns a server and a client TLS configuration for a self-signed certificate valid for 127.0.0.1.
Types ¶
This section is empty.