Skip to content

Commit b297674

Browse files
joeybloggsjoeybloggs
authored andcommitted
Add BitBucket Payload JSON -> Structs
1 parent 098864e commit b297674

File tree

2 files changed

+407
-0
lines changed

2 files changed

+407
-0
lines changed

bitbucket/bitbucket.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package bitbucket
2+
3+
import "gopkg.in/go-playground/webhooks.v1"
4+
5+
// Webhook instance contains all methods needed to process events
6+
type Webhook struct {
7+
provider webhooks.Provider
8+
secret string
9+
eventFuncs map[Event]webhooks.ProcessPayloadFunc
10+
}
11+
12+
// Config defines the configuration to create a new GitHubWebhook instance
13+
type Config struct {
14+
Secret string
15+
}
16+
17+
// Event defines a GitHub hook event type
18+
type Event string

0 commit comments

Comments
 (0)