Finished adding GitHub Event mapping structs

This commit is contained in:
joeybloggs
2015-10-29 12:26:29 -04:00
parent 8c02b7a6d7
commit 28bd4943bc
6 changed files with 1090 additions and 76 deletions
+11 -11
View File
@@ -19,15 +19,15 @@ type Config interface {
}
// New creates and returns a WebHook instance denoted by the Provider type
func New(config Config) Webhook {
// func New(config Config) Webhook {
switch config.UnderlyingProvider() {
case GitHub:
c := config.(*GitHubConfig)
return &GitHubWebhook{
provider: c.Provider,
}
default:
panic("Invalid config type")
}
}
// switch config.UnderlyingProvider() {
// case GitHub:
// c := config.(*GitHubConfig)
// return &GitHubWebhook{
// provider: c.Provider,
// }
// default:
// panic("Invalid config type")
// }
// }