wireguardnl: Go package for interacting with WireGuard via generic netlink
Jason A. Donenfeld
Jason at zx2c4.com
Mon Jul 23 17:12:16 CEST 2018
Hi Matt,
> This is super interesting and I actually did not discover it until after
> I pushed the first few commits to my package. I could see it making
> sense to refactor my current package layout to something like three
> packages:
>
> - wireguardnl: netlink-based communication
> - wireguardcfg: text-based userspace configuration protocol communication
> - wireguard: wrapper for both that detects the module in use and
> seamlessly presents a unified interface
No, that's really not a good approach at all. First of all, do not
take the raw name "wireguard". That's going to cause a lot of
confusion. It's really not appropriate.
But more importantly, you shouldn't expose either the netlink or the
xplatform API distinction to users ever. They should be given one
interface, not three, and that one interface should be able to select
the right thing in 100% of cases.
Jason
More information about the WireGuard
mailing list