ooni-probe-cli/internal/measurex
Simone Basso 730373cc75
refactor: move i/netx/archival structs to i/model (#659)
We recently started moving core data structures inside of the
internal/model package as detailed in https://github.com/ooni/probe/issues/1885.

The chief reason to do that is to have a set of fundamental
shared data types to help us rationalize the codebase.

This specific diff moves internal/netx/archival's core data types
inside the internal/model package. While there, it also refactors the
existing tests to improve their quality. Additionally, we also added
an extra test to ensure `ArchivalHTTPBody` is an alias for
`ArchivalMaybeBinaryData`, which is required to ensure the
custom JSON serialization process works for it.

We're doing that because both internal/netx/archival and
internal/measurex define their own archival data structures.

We developed measurex using its own structures because it
allowed to iterate more quickly. Now that we have sketched
out measurex, the time has come to consolidate.

My overall aim is to spend a few more hours this week on
engineering measurex. This work is preliminary work before
we finish up both measurex and websteps.

We described this cleanup in https://github.com/ooni/probe/issues/1957.
2022-01-10 11:25:52 +01:00
..
archival.go fix(measurex): handle case where TH is nil (#610) 2021-11-22 20:16:38 +01:00
db.go fix(measurex): use same keys of the OONI data format (#572) 2021-11-05 10:46:45 +01:00
dialer.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsx.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
doc.go feat(measurex): refactored measurement library (#528) 2021-09-30 01:24:08 +02:00
easy.go refactor(tor): rewrite using measurex (#652) 2022-01-05 18:41:11 +01:00
endpoint.go feat(measurex): refactored measurement library (#528) 2021-09-30 01:24:08 +02:00
failure.go fix(measurex): use same keys of the OONI data format (#572) 2021-11-05 10:46:45 +01:00
http.go refactor(measurex): allow to configure timeouts and max-snapshot-size (#645) 2022-01-04 13:20:48 +01:00
logger.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
measurement.go fix(measurex): handle case where TH is nil (#610) 2021-11-22 20:16:38 +01:00
measurer.go refactor(measurex): allow to configure timeouts and max-snapshot-size (#645) 2022-01-04 13:20:48 +01:00
oddity.go feat(measurex): refactored measurement library (#528) 2021-09-30 01:24:08 +02:00
quic.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
resolver.go refactor: move i/netx/archival structs to i/model (#659) 2022-01-10 11:25:52 +01:00
tls.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
tracing.go refactor(measurex): allow to configure timeouts and max-snapshot-size (#645) 2022-01-04 13:20:48 +01:00
utils.go feat(measurex): refactored measurement library (#528) 2021-09-30 01:24:08 +02:00