Fix some bad URL bad copy/replace
This commit is contained in:
@@ -2,7 +2,7 @@ Library webhooks
|
|||||||
================
|
================
|
||||||
|
|
||||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v1)
|
[](https://coveralls.io/github/go-playground/webhooks?branch=v1)
|
||||||
[](https://godoc.org/gopkg.in/go-playground/webhooks)
|
[](https://godoc.org/gopkg.in/go-playground/webhooks.v1)
|
||||||
|
|
||||||
Library webhooks allows for easy recieving and parsing of GitHub Webhook Events; more services to come i.e. BitBucket...
|
Library webhooks allows for easy recieving and parsing of GitHub Webhook Events; more services to come i.e. BitBucket...
|
||||||
|
|
||||||
@@ -20,20 +20,20 @@ Installation
|
|||||||
|
|
||||||
Use go get.
|
Use go get.
|
||||||
|
|
||||||
go get gopkg.in/go-playground/webhooks
|
go get gopkg.in/go-playground/webhooks.v1
|
||||||
|
|
||||||
or to update
|
or to update
|
||||||
|
|
||||||
go get -u gopkg.in/go-playground/webhooks
|
go get -u gopkg.in/go-playground/webhooks.v1
|
||||||
|
|
||||||
Then import the validator package into your own code.
|
Then import the validator package into your own code.
|
||||||
|
|
||||||
import "gopkg.in/go-playground/webhooks"
|
import "gopkg.in/go-playground/webhooks.v1"
|
||||||
|
|
||||||
Usage and documentation
|
Usage and documentation
|
||||||
------
|
------
|
||||||
|
|
||||||
Please see http://godoc.org/gopkg.in/go-playground/webhooks for detailed usage docs.
|
Please see http://godoc.org/gopkg.in/go-playground/webhooks.v1 for detailed usage docs.
|
||||||
|
|
||||||
##### Examples:
|
##### Examples:
|
||||||
|
|
||||||
@@ -45,8 +45,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
"gopkg.in/go-playground/webhooks/github"
|
"gopkg.in/go-playground/webhooks.v1/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -101,8 +101,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
"gopkg.in/go-playground/webhooks/github"
|
"gopkg.in/go-playground/webhooks.v1/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
"gopkg.in/go-playground/webhooks/github"
|
"gopkg.in/go-playground/webhooks.v1/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
"gopkg.in/go-playground/webhooks/github"
|
"gopkg.in/go-playground/webhooks.v1/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Webhook instance contains all methods needed to process events
|
// Webhook instance contains all methods needed to process events
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "gopkg.in/go-playground/assert.v1"
|
. "gopkg.in/go-playground/assert.v1"
|
||||||
"gopkg.in/go-playground/webhooks"
|
"gopkg.in/go-playground/webhooks.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTES:
|
// NOTES:
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ func RunServer(s *http.Server, hook Webhook, path string) error {
|
|||||||
// RunTLSServer runs a custom server with TLS configuration.
|
// RunTLSServer runs a custom server with TLS configuration.
|
||||||
// NOTE: http.Server Handler will be overridden by this library, just set it to nil.
|
// NOTE: http.Server Handler will be overridden by this library, just set it to nil.
|
||||||
// Setting the Certificates can be done in the http.Server.TLSConfig.Certificates
|
// Setting the Certificates can be done in the http.Server.TLSConfig.Certificates
|
||||||
// see example here: https://gopkg.in/go-playground/webhooks/blob/master/webhooks_test.go#L178
|
// see example here: https://gopkg.in/go-playground/webhooks.v1/blob/master/webhooks_test.go#L178
|
||||||
func RunTLSServer(s *http.Server, hook Webhook, path string) error {
|
func RunTLSServer(s *http.Server, hook Webhook, path string) error {
|
||||||
|
|
||||||
srv := &server{
|
srv := &server{
|
||||||
|
|||||||
Reference in New Issue
Block a user