covert bitbucket, gitlab and gogs to new style

This commit is contained in:
Dean Karn
2018-07-25 22:59:10 -07:00
parent 077706a514
commit e452811cf1
7 changed files with 298 additions and 280 deletions
+2 -6
View File
@@ -1,11 +1,7 @@
package webhooks
import (
"net/http"
)
// Header provides http.Header to minimize imports
type Header http.Header
// type Header http.Header
// // Provider defines the type of webhook
// type Provider int
@@ -46,7 +42,7 @@ type Header http.Header
// }
// ProcessPayloadFunc is a common function for payload return values
type ProcessPayloadFunc func(payload interface{}, header Header) error
// type ProcessPayloadFunc func(payload interface{}, header Header) error
// // Handler returns the webhook http.Handler for use in your own Mux implementation
// func Handler(hook Webhook) http.Handler {