ooni-probe-cli/internal/engine/netx/resolver
Simone Basso 2e0118d1a6
refactor(netxlite): hide details without breaking the rest of the tree (#454)
## Description

This PR continues the refactoring of `netx` under the following principles:

1. do not break the rest of the tree and do not engage in extensive tree-wide refactoring yet
2. move under `netxlite` clearly related subpackages (e.g., `iox`, `netxmocks`)
3. move into `internal/netxlite/internal` stuff that is clearly private of `netxlite`
4. hide implementation details in `netxlite` pending new factories
5. refactor `tls` code in `netxlite` to clearly separate `crypto/tls` code from `utls` code

After each commit, I run `go test -short -race ./...` locally. Each individual commit explains what it does. I will squash, but this operation will preserve the original commit titles, so this will give further insight on each step.

## Commits

* refactor: rename netxmocks -> netxlite/mocks

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

* refactor: rename quicx -> netxlite/quicx

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

* refactor: rename iox -> netxlite/iox

Regenerate sources and make sure the tests pass.

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

* refactor(iox): move MockableReader to netxlite/mocks

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

* refactor(netxlite): generator is an implementation detail

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

* refactor(netxlite): separate tls and utls code

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

* refactor(netxlite): hide most types but keep old names as legacy

With this change we avoid breaking the rest of the tree, but we start
hiding some implementation details a bit. Factories will follow.

See https://github.com/ooni/probe/issues/1591
2021-09-05 14:49:38 +02:00
..
address_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
address.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
bogon_test.go refactor: move i/e/n/errorx to i/errorsx (#416) 2021-07-01 16:34:36 +02:00
bogon.go refactor: move i/e/n/errorx to i/errorsx (#416) 2021-07-01 16:34:36 +02:00
cache_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
cache.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
chain_test.go refactor: move tls handshaker to netxlite (#400) 2021-06-25 11:07:26 +02:00
chain.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
decoder_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
decoder.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dnsoverhttps_test.go cleanup(all): stop using deprecated ioutil functions (#381) 2021-06-15 14:01:45 +02:00
dnsoverhttps.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
dnsovertcp_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dnsovertcp.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dnsoverudp_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
dnsoverudp.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
emitter_test.go cleanup: remove ConnID, DialID, TransactionID (#395) 2021-06-23 13:36:45 +02:00
emitter.go cleanup: remove ConnID, DialID, TransactionID (#395) 2021-06-23 13:36:45 +02:00
encoder_test.go Release 3.6.0 (#239) 2021-03-03 14:42:17 +01:00
encoder.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
fake_test.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
genreply_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
idna.go refactor: fully move IDNAResolver to netxlite (#433) 2021-08-17 11:02:12 +02:00
integration_test.go refactor: fully move IDNAResolver to netxlite (#433) 2021-08-17 11:02:12 +02:00
resolver.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
saver_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
saver.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
serial_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
serial.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +02:00
tls_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00