ooni / minivpn

A minimalistic OpenVPN implementation in Go
GNU General Public License v3.0
36 stars 6 forks source link

refactor: expose public API #70

Closed ainghazal closed 4 months ago

ainghazal commented 5 months ago

Expose config and tunnel as a public API.

This refactor tries to expose all the useful functions to instantiate an OpenVPN tunnel (paving the way to usage from probe-cli).

Checklist

ainghazal commented 5 months ago

Deferring review until we merge #68 (which is included in this branch right now).

ainghazal commented 4 months ago

The only question I have is why the logger_test and tracer_test were removed? Is it because this new layout makes testing of those packages harder?

it was a bit of a cleanup: