Closed muhlemmer closed 4 years ago
I think at this time, I'd prefer to keep the API small and focused. In addition, I think some of the configuration structures could use some more work (see #7).
If this ends up being a popular request, I will reconsider though.
Ok. I already have the helper function in my project. Is was no biggie. The only two tests I had to do where for PresharedKey
and PersistentKeepaliveInterval
. The rest where already compatible types. Let me know whenever you change your mind.
If time allows I will look into #7.
Closing due to no further feedback for a month.
I'm writing a getter/ setter kind of config app for which I need to convert
wgtypes.Peer
towgtypes.PeerConfig
. I'm planning to write a helper function for that. If you guys are interested, I can make it a method ofwgtypes.Peer
and send a pull request instead.I'm thinking of the following design: