ooni-probe-cli/internal/bytecounter
Simone Basso 6b85dfce88
refactor(netx): move construction logic outside package (#798)
For testability, replace most if-based construction logic with
calls to well-tested factories living in other packages.

While there, acknowledge that a bunch of types could now be private
and make them private, modifying the code to call the public
factories allowing to construct said types instead.

Part of https://github.com/ooni/probe/issues/2121
2022-06-05 21:22:27 +02:00
..
conn_test.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
conn.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
context_test.go feat(torsf): collect tor logs, select rendezvous method, count bytes (#683) 2022-02-07 17:05:36 +01:00
context.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
counter_test.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
counter.go refactor(session.go): replace engine/netx with netxlite (#767) 2022-05-30 22:00:45 +02:00
dialer_test.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
dialer.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
doc.go refactor(session.go): replace engine/netx with netxlite (#767) 2022-05-30 22:00:45 +02:00
http_test.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00
http.go refactor(netx): move construction logic outside package (#798) 2022-06-05 21:22:27 +02:00