Add BitBucket Payload JSON -> Structs

This commit is contained in:
joeybloggs
2016-01-07 13:31:00 -05:00
parent 098864e9c9
commit b297674e2b
2 changed files with 407 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package bitbucket
import "gopkg.in/go-playground/webhooks.v1"
// Webhook instance contains all methods needed to process events
type Webhook struct {
provider webhooks.Provider
secret string
eventFuncs map[Event]webhooks.ProcessPayloadFunc
}
// Config defines the configuration to create a new GitHubWebhook instance
type Config struct {
Secret string
}
// Event defines a GitHub hook event type
type Event string