Hookshot is a Go http router that de-multiplexes and authorizes GitHub Webhooks.
r := hookshot.NewRouter()
r.Handle("deployment_status", DeploymentStatusHandler)
r.Handle("deployment", DeploymentHandler)
To automatically verify the X-Hub-Signature
:
r.Handle("deployment", hookshot.Authorize(DeploymentHandler, "secret"))