ooni-probe-cli/internal/model
Simone Basso 39cb5959c9
fix(datafmt): sync measurexlite and v0.5 with previous code (#942)
* fix(model/archival.go): more optional keys

Basically, `t0` and `transaction_id` should be optional. Version 0.4.x
of web_connectivity should not include them, version 0.5.x should.

There is a technical reason why v0.4.x should not include them. The code
it is based on, tracex, does not record these two fields.

Whereas, v0.5.x, uses measurexlite, which records these two fields.

Part of https://github.com/ooni/probe/issues/2238

* fix(webconnectivity@v0.5): add more fields

This diff adds the following fields to webconnectivity@v0.5:

1. agent, always set to "redirect" (legacy field);

2. client_resolver, properly initialized w/ the resolver's IPv4 address;

3. retries, legacy field always set to null;

4. socksproxy, legacy field always set to null.

Part of https://github.com/ooni/probe/issues/2238

* fix(webconnectivity@v0.5): register extensions

The general idea behind this field is that we would be able
in the future to tweak the data model for some fields, by declaring
we're using a later version, so it seems useful to add it.

See https://github.com/ooni/probe/issues/2238

* fix(measurexlite): use tcp or quic for tls handshake network

This diff fixes a bug where measurexlite was using "tls" as the
protocol for the TLS handshake when using TCP.

While this choice _could_ make sense, the rest of the code we have
written so far uses "tcp" instead.

Using "tcp" makes more sense because it allows you to search for
the same endpoint across different events by checking for the same
network and for the same endpoint rather than special casing TLS
handshakes for using "tls" when the endpoint is "tcp".

See https://github.com/ooni/probe/issues/2238

* chore: run alltests.yml for "alltestsbuild" branches

Part of https://github.com/ooni/probe/issues/2238
2022-09-08 10:02:47 +02:00
..
mocks feat(miniooni): optionally log using emojis (#932) 2022-09-05 10:06:44 +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 feat(netxlite): support extracting the CNAME (#875) 2022-08-23 13:04:00 +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.