]> Cypherpunks.ru repositories - govpn.git/commit
Refactor govpn common package
authorBruno Clermont <bruno@robotinfra.com>
Wed, 8 Feb 2017 10:41:10 +0000 (18:41 +0800)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 25 Feb 2017 08:27:52 +0000 (11:27 +0300)
commit5a55ad42b9b740659e8e89963403c27f7704e50a
treeb63dd1b0fbc91495bf2bd5d6282e61b4ecd2f2af
parentefaad3bf853603c25ae70a5779cce355d1c21016
Refactor govpn common package

- unexposed type and values that aren't consumed outside package
- golint fixes
- switch logging to logrus
- add more logging messages
- improve usage as a library: no more `panic` or `os.Exit`, return `error` instead
- evalute/raise nearly all possible `error` values
src/cypherpunks.ru/govpn/common.go
src/cypherpunks.ru/govpn/egd.go
src/cypherpunks.ru/govpn/handshake.go
src/cypherpunks.ru/govpn/identity.go
src/cypherpunks.ru/govpn/peer.go
src/cypherpunks.ru/govpn/stats.go
src/cypherpunks.ru/govpn/verifier.go