diff --git a/.traefik.yml b/.traefik.yml index 1a0b891..708b5ad 100644 --- a/.traefik.yml +++ b/.traefik.yml @@ -1,7 +1,7 @@ displayName: Check Body Request type: middleware -import: github.com/soulbalz/checkbodyplugin +import: github.com/soulbalz/traefik-check-body summary: Checks the incoming request for specific body and their values to be present and matching the configuration. diff --git a/config.go b/config.go index 6362ee3..a904ba9 100644 --- a/config.go +++ b/config.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody import ( "fmt" diff --git a/constant.go b/constant.go index 70b83dd..9e1da7f 100644 --- a/constant.go +++ b/constant.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody // MatchType defines an enum which can be used to specify the match type for the 'contains' config. type MatchType string diff --git a/go.mod b/go.mod index e6199e9..cb63dd9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/soulbalz/checkbodyplugin +module github.com/soulbalz/traefik-check-body go 1.15 diff --git a/handler.go b/handler.go index 3b034af..327ac73 100644 --- a/handler.go +++ b/handler.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody import ( "bytes" diff --git a/main.go b/main.go index f5cca0d..0bc5714 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody import ( "context" diff --git a/main_test.go b/main_test.go index fa4f35b..f368fba 100644 --- a/main_test.go +++ b/main_test.go @@ -1,4 +1,4 @@ -package checkbodyplugin_test +package checkbody_test import ( "bytes" @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - checkbody "github.com/soulbalz/checkbodyplugin" + checkbody "github.com/soulbalz/traefik-check-body" ) var required = true diff --git a/response.go b/response.go index b2dd873..a8f1118 100644 --- a/response.go +++ b/response.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody import ( "fmt" diff --git a/single_body.go b/single_body.go index bf8a999..6c1939b 100644 --- a/single_body.go +++ b/single_body.go @@ -1,4 +1,4 @@ -package checkbodyplugin +package checkbody import ( "strings"