Commit edd70c27 authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Refactor: move pkg auth in internal

parent b515b737
Pipeline #5190 passed with stages
in 3 minutes and 26 seconds
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/auth"
) )
// HandleBankAccounts handle API call on BankAccounts // HandleBankAccounts handle API call on BankAccounts
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/auth"
) )
// HandleBankers handle API calls on Bankers // HandleBankers handle API calls on Bankers
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/auth"
) )
// UserClient has many BankAccounts and one UserBanker // UserClient has many BankAccounts and one UserBanker
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/auth"
"github.com/jinzhu/gorm" "github.com/jinzhu/gorm"
// Needed for sqlite // Needed for sqlite
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "forge.grandlyon.com/apoyen/sdk-go/internal/auth"
) )
// HandleOperations handle API calls on Operations // HandleOperations handle API calls on Operations
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "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/tester"
) )
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "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/tester"
) )
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"forge.grandlyon.com/apoyen/sdk-go/internal/auth"
"forge.grandlyon.com/apoyen/sdk-go/internal/models" "forge.grandlyon.com/apoyen/sdk-go/internal/models"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth"
"forge.grandlyon.com/apoyen/sdk-go/pkg/tester" "forge.grandlyon.com/apoyen/sdk-go/pkg/tester"
) )
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"net/http" "net/http"
"os" "os"
"forge.grandlyon.com/apoyen/sdk-go/internal/auth"
"forge.grandlyon.com/apoyen/sdk-go/internal/models" "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/middlewares"
"forge.grandlyon.com/apoyen/sdk-go/pkg/common" "forge.grandlyon.com/apoyen/sdk-go/pkg/common"
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"regexp" "regexp"
"testing" "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/tester"
"forge.grandlyon.com/apoyen/sdk-go/pkg/tokens" "forge.grandlyon.com/apoyen/sdk-go/pkg/tokens"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment