ooni-probe-cli/internal/engine/netx/resolver
kelmenhorst 1fefe5d9b8
cli: error classification refactoring (#386)
* make errorx classifier less dependent on strings

* adapt errorx tests

* added syserror comment

* localized classification of quic errors

* localized classification of resolver errors

* (fix) move "no such host" error to global classifier

* moved x509 errors to local TLS error classifier

* added qtls error classification for quicdialer

* add Classifier to SafeErrWrapperBuilder

* windows/unix specific files for errno constants

* added errno ETIMEDOUT, tests

* added TLS alert constants

* added FailureSSLHandshake test, improved switch style

* added more network based system error constants for future use

* (fix) import style

* (fix) errorx typos/style

* (fix) robustness of SafeErrWrapperBuilder, added comments

* (fix) reversed unnecessary changes, added comments

* (fix) style and updated comment

* errorx: added future re-structuring comment

* (fix) typo TLS alert code 51

* added comment

* alert mapping: added comment

* Update errorx.go

* Update internal/engine/netx/errorx/errorx.go

Co-authored-by: Simone Basso <bassosimone@gmail.com>
2021-06-23 11:32:53 +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 chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
bogon.go refactor: flatten and separate (#353) 2021-06-04 10:34:18 +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 chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01: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 fix(all): introduce and use iox.ReadAllContext (#379) 2021-06-15 11:57:40 +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 chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
emitter.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01: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
errorwrapper_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
errorwrapper.go cli: error classification refactoring (#386) 2021-06-23 11:32:53 +02: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_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
idna.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
integration_test.go Release 3.6.0 (#239) 2021-03-03 14:42:17 +01:00
logging_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
logging.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01: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
system_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
system.go refactor(netx): remove the self censorship mechanism (#364) 2021-06-08 19:40:17 +02:00
tls_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00