7e0b47311d
Rather than passing functions to construct complex objects such as Dialer and QUICDialer, pass interface implementations. Ensure that a nil implementation does not cause harm. Make Saver implement the correct interface either directly or indirectly. We need to implement the correct interface indirectly for TCP conns (or connected UDP sockets) because we have two distinct use cases inside netx: observing just the connect event and observing just the I/O events. With this change, the construction of composed Dialers and QUICDialers is greatly simplified and more obvious. Part of https://github.com/ooni/probe/issues/2121 |
||
---|---|---|
.. | ||
archival_test.go | ||
archival.go | ||
dialer_test.go | ||
dialer.go | ||
doc.go | ||
event.go | ||
http_test.go | ||
http.go | ||
quic_test.go | ||
quic.go | ||
resolver_test.go | ||
resolver.go | ||
saver_test.go | ||
saver.go | ||
tls_test.go | ||
tls.go |