ooni-probe-cli/internal/model
Simone Basso b78b9aca51
refactor(datafmt): use "udp" instead of "quic" (#946)
This diff changes the data format to prefer "udp" to "quic" everywhere we were previously using "quic".

Previously, the code inconsistently used "quic" for operations where we knew we were using "quic" and "udp" otherwise (e.g., for generic operations like ReadFrom).

While it would be more correct to say that a specific HTTP request used "quic" rather than "udp", using "udp" consistently allows one to see how distinct events such as ReadFrom and an handshake all refer to the same address, port, and protocol triple. Therefore, this change makes it easier to programmatically unpack a single measurement and create endpoint stats.

Before implementing this change, I discussed the problem with @hellais who mentioned that ooni/data is not currently using the "quic" string anywhere. I know that ooni/pipeline also doesn't rely on this string. The only users of this feature have been research-oriented experiments such as urlgetter, for which such a change would actually be acceptable.

See https://github.com/ooni/probe/issues/2238 and https://github.com/ooni/spec/pull/262.
2022-09-08 17:19:59 +02:00
..
mocks refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
archival_test.go feat: tlsping and tcpping using step-by-step (#815) 2022-07-01 12:22:22 +02:00
archival.go fix(datafmt): sync measurexlite and v0.5 with previous code (#942) 2022-09-08 10:02:47 +02:00
doc.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
http.go chore: upgrade user-agent used for measuring (#931) 2022-09-04 18:02:59 +02:00
keyvaluestore.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
logger_test.go cleanup(netx): another batch of small/simple cleanups (#789) 2022-06-02 13:50:34 +02:00
logger.go cleanup(netx): another batch of small/simple cleanups (#789) 2022-06-02 13:50:34 +02:00
measurement_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
measurement.go refactor: spin geoipx off geolocate (#893) 2022-08-28 20:00:25 +02:00
netx.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
ooapi.go fix(ooniprobe): use ooniprobe-cli-unattended for unattended runs (#714) 2022-04-29 13:41:09 +02:00
README.md doc(step-by-step): readability improvements (#820) 2022-06-30 09:55:18 +02:00
runtype.go fix(ooniprobe): use ooniprobe-cli-unattended for unattended runs (#714) 2022-04-29 13:41:09 +02:00
th.go feat(oohelperd): add prometheus metrics (#897) 2022-08-28 23:54:22 +02:00

Package github.com/ooni/probe-cli/internal/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.