Make hook package internal

The hook package API is not meant for public consumption.
This commit is contained in:
Cameron Moore 2019-12-21 11:55:42 -06:00
parent c872aae7e8
commit 40d9dcd6d4
4 changed files with 6 additions and 6 deletions

View file

@ -373,10 +373,10 @@ var hooksLoadFromFileTests = []struct {
asTemplate bool
ok bool
}{
{"../hooks.json.example", false, true},
{"../hooks.yaml.example", false, true},
{"../hooks.json.tmpl.example", true, true},
{"../hooks.yaml.tmpl.example", true, true},
{"../../hooks.json.example", false, true},
{"../../hooks.yaml.example", false, true},
{"../../hooks.json.tmpl.example", true, true},
{"../../hooks.yaml.tmpl.example", true, true},
{"", false, true},
// failures
{"missing.json", false, false},

View file

@ -15,7 +15,7 @@ import (
"strings"
"time"
"github.com/adnanh/webhook/hook"
"github.com/adnanh/webhook/internal/hook"
"github.com/codegangsta/negroni"
"github.com/gofrs/uuid"
"github.com/gorilla/mux"

View file

@ -18,7 +18,7 @@ import (
"text/template"
"time"
"github.com/adnanh/webhook/hook"
"github.com/adnanh/webhook/internal/hook"
)
func TestStaticParams(t *testing.T) {