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 |
||
---|---|---|
.. | ||
mocks | ||
archival_test.go | ||
archival.go | ||
doc.go | ||
experiment_test.go | ||
experiment.go | ||
http.go | ||
keyvaluestore.go | ||
logger_test.go | ||
logger.go | ||
measurement_test.go | ||
measurement.go | ||
netx.go | ||
ooapi.go | ||
README.md | ||
runtype.go |
Package github.com/ooni/probe-engine/model
Shared data structures and interfaces. We include in this
package the most fundamental types. Use go doc
to get
more thorough documentation about what is inside this package
and when to put a type inside this package.