diff --git a/pkg/auth/auth.go b/internal/auth/auth.go similarity index 100% rename from pkg/auth/auth.go rename to internal/auth/auth.go diff --git a/pkg/auth/auth_test.go b/internal/auth/auth_test.go similarity index 100% rename from pkg/auth/auth_test.go rename to internal/auth/auth_test.go diff --git a/pkg/auth/dbusers.go b/internal/auth/dbusers.go similarity index 100% rename from pkg/auth/dbusers.go rename to internal/auth/dbusers.go diff --git a/pkg/auth/inmemory.go b/internal/auth/inmemory.go similarity index 100% rename from pkg/auth/inmemory.go rename to internal/auth/inmemory.go diff --git a/pkg/auth/oauth2.go b/internal/auth/oauth2.go similarity index 100% rename from pkg/auth/oauth2.go rename to internal/auth/oauth2.go diff --git a/internal/models/bankAccounts.go b/internal/models/bankAccounts.go index c3164f16cf2eeefb72080f4201a1f721b778558a..fc1185869d0d29d69cbf83ba06be2d65c50b244c 100644 --- a/internal/models/bankAccounts.go +++ b/internal/models/bankAccounts.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" ) // HandleBankAccounts handle API call on BankAccounts diff --git a/internal/models/bankers.go b/internal/models/bankers.go index 7be006c25f30c9913a19708f514b83f0d5ecb5d9..e1a4700d680f3965f884cff7b4810ae400758b56 100644 --- a/internal/models/bankers.go +++ b/internal/models/bankers.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" ) // HandleBankers handle API calls on Bankers diff --git a/internal/models/clients.go b/internal/models/clients.go index f8ebc1a1b3d1ad2dd9e718b2fdd5ed692737c8f8..bf958d36307193fd7edd4d4045bdc006967f96c9 100644 --- a/internal/models/clients.go +++ b/internal/models/clients.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" ) // UserClient has many BankAccounts and one UserBanker diff --git a/internal/models/models.go b/internal/models/models.go index f8d68bfeb922e9cc7d62ee6f15374c036c7b9818..8d5a4739c3488b63586e4706e1ab8a96dc3391b9 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "github.com/jinzhu/gorm" // Needed for sqlite diff --git a/internal/models/operations.go b/internal/models/operations.go index 90114c589c804a8c9d9f74818b16f9e03726256e..9377fbf7860616f4ebf513ba4273f111993595e1 100644 --- a/internal/models/operations.go +++ b/internal/models/operations.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" ) // HandleOperations handle API calls on Operations diff --git a/internal/rootmux/admin_test.go b/internal/rootmux/admin_test.go index fc56fade8dcca59b25631ef5663dded52b17d052..0e0415c4e61966ab0474a577690d156a15b5ae7e 100644 --- a/internal/rootmux/admin_test.go +++ b/internal/rootmux/admin_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "forge.grandlyon.com/apoyen/sdk-go/pkg/tester" ) diff --git a/internal/rootmux/banker_test.go b/internal/rootmux/banker_test.go index d2ab2e9086a5a970fbf645ae1ed8d7cc1662e202..005ee7bee34c87809942afe93bdffadf235fb655 100644 --- a/internal/rootmux/banker_test.go +++ b/internal/rootmux/banker_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "forge.grandlyon.com/apoyen/sdk-go/pkg/tester" ) diff --git a/internal/rootmux/client_test.go b/internal/rootmux/client_test.go index c6229a881edc97bc02b2477eedf28478bb265e50..9a234d7bfc85732a7c30df2edb3c6dc7ae679f01 100644 --- a/internal/rootmux/client_test.go +++ b/internal/rootmux/client_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/models" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/pkg/tester" ) diff --git a/internal/rootmux/rootmux.go b/internal/rootmux/rootmux.go index af967dac517358e694eddecad0b52d18aaddc1ee..c36a0d2c067da1005e5d63bf83d35028450b54cb 100644 --- a/internal/rootmux/rootmux.go +++ b/internal/rootmux/rootmux.go @@ -4,8 +4,8 @@ import ( "net/http" "os" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/models" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/pkg/middlewares" "forge.grandlyon.com/apoyen/sdk-go/pkg/common" diff --git a/internal/rootmux/rootmux_test.go b/internal/rootmux/rootmux_test.go index 443076724ee1f5a1103c2844f512e3f8f961a0a4..05a217e2ad1c685c67bcc263a20e02510d16d18a 100644 --- a/internal/rootmux/rootmux_test.go +++ b/internal/rootmux/rootmux_test.go @@ -11,7 +11,7 @@ import ( "regexp" "testing" - "forge.grandlyon.com/apoyen/sdk-go/pkg/auth" + "forge.grandlyon.com/apoyen/sdk-go/internal/auth" "forge.grandlyon.com/apoyen/sdk-go/pkg/tester" "forge.grandlyon.com/apoyen/sdk-go/pkg/tokens"