ooni-probe-cli/internal/netxlite
Simone Basso 273b70bacc
refactor: interfaces and data types into the model package (#642)
## Checklist

- [x] I have read the [contribution guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request: https://github.com/ooni/probe/issues/1885
- [x] related ooni/spec pull request: N/A

Location of the issue tracker: https://github.com/ooni/probe

## Description

This PR contains a set of changes to move important interfaces and data types into the `./internal/model` package.

The criteria for including an interface or data type in here is roughly that the type should be important and used by several packages. We are especially interested to move more interfaces here to increase modularity.

An additional side effect is that, by reading this package, one should be able to understand more quickly how different parts of the codebase interact with each other.

This is what I want to move in `internal/model`:

- [x] most important interfaces from `internal/netxlite`
- [x] everything that was previously part of `internal/engine/model`
- [x] mocks from `internal/netxlite/mocks` should also be moved in here as a subpackage
2022-01-03 13:53:23 +01:00
..
filtering refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
internal [forwardport] fix(ios): make sure we can build an iOS release (#598) (#599) 2021-11-15 14:24:20 +01:00
mocks refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
quictesting [forwardport] fix: avoid http3 for dns.google and www.google.com (#593) (#594) 2021-11-12 14:43:28 +01:00
bogon_test.go cleanup: move bogon checking code in netxlite (#562) 2021-11-02 12:20:04 +01:00
bogon.go cleanup: move bogon checking code in netxlite (#562) 2021-11-02 12:20:04 +01:00
certifi_test.go netxlite: improve docs, tests, and code quality (#493) 2021-09-08 21:19:51 +02:00
certifi.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
classify_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
classify.go fix(netxlite): ensure HTTP errors are always wrapped (#584) 2021-11-06 17:49:58 +01:00
dialer_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dialer.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsdecoder_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
dnsdecoder.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsencoder_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
dnsencoder.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsoverhttps_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsoverhttps.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsovertcp_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsovertcp.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsoverudp_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnsoverudp.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
dnstransport.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
doc.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
errno_darwin_test.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_darwin.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_freebsd_test.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_freebsd.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_linux_test.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_linux.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_windows_test.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno_windows.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errno.go [forwardport] release 3.11: update all the dependencies (#636) (#637) 2021-12-06 17:46:13 +01:00
errwrapper_test.go fix(netxlite): ensure HTTP errors are always wrapped (#584) 2021-11-06 17:49:58 +01:00
errwrapper.go fix(netxlite): ensure HTTP errors are always wrapped (#584) 2021-11-06 17:49:58 +01:00
http_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
http.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
http3_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
http3.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
integration_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
iox_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
iox.go fix(netxlite): ensure HTTP errors are always wrapped (#584) 2021-11-06 17:49:58 +01:00
legacy_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
legacy.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
operations.go doc(netxlite): revamp the documentation (#523) 2021-09-29 20:21:25 +02:00
quic_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
quic.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
quirks_test.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
quirks.go refactor: merge dnsx and errorsx into netxlite (#517) 2021-09-28 12:42:01 +02:00
resolver_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
resolver.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
serialresolver_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
serialresolver.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
tls_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
tls.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
tproxy.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
utls_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
utls.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00