fix import paths for v2 release

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-01-30 14:39:00 +03:00
parent 2b1e0a6fd6
commit f23638c036
347 changed files with 864 additions and 820 deletions

View File

@@ -6,15 +6,15 @@ import (
"crypto/tls"
"net"
"github.com/micro/go-micro/transport"
maddr "github.com/micro/go-micro/util/addr"
mnet "github.com/micro/go-micro/util/net"
mls "github.com/micro/go-micro/util/tls"
"github.com/micro/go-micro/v2/transport"
maddr "github.com/micro/go-micro/v2/util/addr"
mnet "github.com/micro/go-micro/v2/util/net"
mls "github.com/micro/go-micro/v2/util/tls"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
pb "github.com/micro/go-micro/transport/grpc/proto"
pb "github.com/micro/go-micro/v2/transport/grpc/proto"
)
type grpcTransport struct {

View File

@@ -4,7 +4,7 @@ import (
"net"
"testing"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/v2/transport"
)
func expectedPort(t *testing.T, expected string, lsn transport.Listener) {

View File

@@ -3,10 +3,10 @@ package grpc
import (
"runtime/debug"
"github.com/micro/go-micro/errors"
"github.com/micro/go-micro/transport"
pb "github.com/micro/go-micro/transport/grpc/proto"
"github.com/micro/go-micro/util/log"
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/transport"
pb "github.com/micro/go-micro/v2/transport/grpc/proto"
"github.com/micro/go-micro/v2/util/log"
"google.golang.org/grpc/peer"
)

View File

@@ -11,8 +11,8 @@ import (
import (
context "context"
client "github.com/micro/go-micro/client"
server "github.com/micro/go-micro/server"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -1,8 +1,8 @@
package grpc
import (
"github.com/micro/go-micro/transport"
pb "github.com/micro/go-micro/transport/grpc/proto"
"github.com/micro/go-micro/v2/transport"
pb "github.com/micro/go-micro/v2/transport/grpc/proto"
"google.golang.org/grpc"
)

View File

@@ -2,7 +2,7 @@
package http
import (
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/v2/transport"
)
// NewTransport returns a new http transport using net/http and supporting http2

View File

@@ -4,7 +4,7 @@ import (
"sync"
"testing"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/v2/transport"
)
func call(b *testing.B, c int) {

View File

@@ -4,7 +4,7 @@ import (
"context"
"net/http"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/v2/transport"
)
// Handle registers the handler for the given pattern.

View File

@@ -13,10 +13,10 @@ import (
"sync"
"time"
maddr "github.com/micro/go-micro/util/addr"
"github.com/micro/go-micro/util/buf"
mnet "github.com/micro/go-micro/util/net"
mls "github.com/micro/go-micro/util/tls"
maddr "github.com/micro/go-micro/v2/util/addr"
"github.com/micro/go-micro/v2/util/buf"
mnet "github.com/micro/go-micro/v2/util/net"
mls "github.com/micro/go-micro/v2/util/tls"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
)

View File

@@ -10,9 +10,9 @@ import (
"sync"
"time"
"github.com/micro/go-micro/transport"
maddr "github.com/micro/go-micro/util/addr"
mnet "github.com/micro/go-micro/util/net"
"github.com/micro/go-micro/v2/transport"
maddr "github.com/micro/go-micro/v2/util/addr"
mnet "github.com/micro/go-micro/v2/util/net"
)
type memorySocket struct {

View File

@@ -3,7 +3,7 @@ package memory
import (
"testing"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/v2/transport"
)
func TestMemoryTransport(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"crypto/tls"
"time"
"github.com/micro/go-micro/codec"
"github.com/micro/go-micro/v2/codec"
)
type Options struct {

View File

@@ -8,8 +8,8 @@ import (
"time"
quic "github.com/lucas-clemente/quic-go"
"github.com/micro/go-micro/transport"
utls "github.com/micro/go-micro/util/tls"
"github.com/micro/go-micro/v2/transport"
utls "github.com/micro/go-micro/v2/util/tls"
)
type quicSocket struct {