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

@@ -1,4 +1,4 @@
// Package kubernetes is a logger implementing (github.com/micro/go-micro/debug/log).Log
// Package kubernetes is a logger implementing (github.com/micro/go-micro/v2/debug/log).Log
package kubernetes
import (
@@ -10,8 +10,8 @@ import (
"strconv"
"time"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/util/kubernetes/client"
"github.com/micro/go-micro/v2/debug/log"
"github.com/micro/go-micro/v2/util/kubernetes/client"
)
type klog struct {

View File

@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
"github.com/stretchr/testify/assert"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
)
func write(l log.Record) error {

View File

@@ -4,8 +4,8 @@ package memory
import (
"fmt"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/util/ring"
"github.com/micro/go-micro/v2/debug/log"
"github.com/micro/go-micro/v2/util/ring"
)
var (

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
)
func TestLogger(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package memory
import (
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
)
type logStream struct {

View File

@@ -1,7 +1,7 @@
package noop
import (
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
)
type noop struct{}

View File

@@ -10,7 +10,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/micro/go-micro/util/ring"
"github.com/micro/go-micro/v2/util/ring"
)
// Should stream from OS

View File

@@ -7,7 +7,7 @@ import (
"net/http/pprof"
"sync"
"github.com/micro/go-micro/debug/profile"
"github.com/micro/go-micro/v2/debug/profile"
)
type httpProfile struct {

View File

@@ -9,7 +9,7 @@ import (
"sync"
"time"
"github.com/micro/go-micro/debug/profile"
"github.com/micro/go-micro/v2/debug/profile"
)
type profiler struct {

View File

@@ -5,10 +5,10 @@ import (
"context"
"time"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/debug/log"
pb "github.com/micro/go-micro/debug/service/proto"
"github.com/micro/go-micro/v2/debug/log"
pb "github.com/micro/go-micro/v2/debug/service/proto"
)
// Debug provides debug service client

View File

@@ -5,11 +5,11 @@ import (
"context"
"time"
"github.com/micro/go-micro/debug/log"
proto "github.com/micro/go-micro/debug/service/proto"
"github.com/micro/go-micro/debug/stats"
"github.com/micro/go-micro/debug/trace"
"github.com/micro/go-micro/server"
"github.com/micro/go-micro/v2/debug/log"
proto "github.com/micro/go-micro/v2/debug/service/proto"
"github.com/micro/go-micro/v2/debug/stats"
"github.com/micro/go-micro/v2/debug/trace"
"github.com/micro/go-micro/v2/server"
)
// NewHandler returns an instance of the Debug Handler

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

@@ -3,8 +3,8 @@ package service
import (
"time"
"github.com/micro/go-micro/debug"
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug"
"github.com/micro/go-micro/v2/debug/log"
)
type serviceLog struct {

View File

@@ -1,7 +1,7 @@
package service
import (
"github.com/micro/go-micro/debug/log"
"github.com/micro/go-micro/v2/debug/log"
)
type logStream struct {

View File

@@ -5,7 +5,7 @@ import (
"sync"
"time"
"github.com/micro/go-micro/util/ring"
"github.com/micro/go-micro/v2/util/ring"
)
type stats struct {

View File

@@ -5,8 +5,8 @@ import (
"time"
"github.com/google/uuid"
"github.com/micro/go-micro/debug/trace"
"github.com/micro/go-micro/util/ring"
"github.com/micro/go-micro/v2/debug/trace"
"github.com/micro/go-micro/v2/util/ring"
)
type Tracer struct {