ooni-probe-cli/internal/engine/netx/tracex
Simone Basso 7e0b47311d
refactor(netxlite): better integration with tracex (#774)
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
2022-06-01 08:31:20 +02:00
..
archival_test.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
archival.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
dialer_test.go refactor(netx): merge archival, trace, and the savers (#772) 2022-05-31 21:53:01 +02:00
dialer.go refactor(netxlite): better integration with tracex (#774) 2022-06-01 08:31:20 +02:00
doc.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
event.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
http_test.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
http.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
quic_test.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
quic.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
resolver_test.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
resolver.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
saver_test.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00
saver.go refactor(netxlite): better integration with tracex (#774) 2022-06-01 08:31:20 +02:00
tls_test.go refactor(netxlite): better integration with tracex (#774) 2022-06-01 08:31:20 +02:00
tls.go refactor(tracex): start applying recent code conventions (#773) 2022-06-01 07:44:54 +02:00