v3 refactor (#1868)

* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
This commit is contained in:
Asim Aslam
2020-07-27 13:22:00 +01:00
committed by GitHub
parent 9dfeb98111
commit 563768b58a
424 changed files with 6383 additions and 22490 deletions

View File

@@ -6,9 +6,9 @@ import (
"time"
"github.com/google/uuid"
"github.com/micro/go-micro/v2/auth"
"github.com/micro/go-micro/v2/store"
"github.com/micro/go-micro/v2/util/token"
"github.com/micro/go-micro/v3/auth"
"github.com/micro/go-micro/v3/store"
"github.com/micro/go-micro/v3/util/token"
)
// Basic implementation of token provider, backed by the store

View File

@@ -3,9 +3,9 @@ package basic
import (
"testing"
"github.com/micro/go-micro/v2/auth"
"github.com/micro/go-micro/v2/store/memory"
"github.com/micro/go-micro/v2/util/token"
"github.com/micro/go-micro/v3/auth"
"github.com/micro/go-micro/v3/store/memory"
"github.com/micro/go-micro/v3/util/token"
)
func TestGenerate(t *testing.T) {

View File

@@ -5,8 +5,8 @@ import (
"time"
"github.com/dgrijalva/jwt-go"
"github.com/micro/go-micro/v2/auth"
"github.com/micro/go-micro/v2/util/token"
"github.com/micro/go-micro/v3/auth"
"github.com/micro/go-micro/v3/util/token"
)
// authClaims to be encoded in the JWT

View File

@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v2/auth"
"github.com/micro/go-micro/v2/util/token"
"github.com/micro/go-micro/v3/auth"
"github.com/micro/go-micro/v3/util/token"
)
func TestGenerate(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package token
import (
"time"
"github.com/micro/go-micro/v2/store"
"github.com/micro/go-micro/v3/store"
)
type Options struct {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"time"
"github.com/micro/go-micro/v2/auth"
"github.com/micro/go-micro/v3/auth"
)
var (