Add the matcher sample back to the repo #196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey there, while updating my project to the latest
yojimbo
changes I noticed that the matcher code was removed.Years ago when I began using
yojimbo
in my projects I found the code in the matcher example extremely valuable for implementing the connection token logic. I am certain it is valuable to others as well.If you are open to re-adding it, or putting it in its own repo, I've fixed up the
Dockerfile
and updated the code a little bit. The changes include:cgo
dependency requiringlibsodium
, thegolang.org/x/crypto
package now provides a native go implementation of thecrypto_aead_xchacha20poly1305_ietf_encrypt
function.gorilla/mux
router tochi
.chi
is a very lightweight http router that uses the go standard lib interfaces rather than custom ones.go vet
no longer complains about things.Thanks again for all the work you've done on these libraries and your articles on network programming!