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,7 +1,7 @@
package selector
import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/registry"
)
var (

View File

@@ -3,8 +3,8 @@ package selector
import (
"time"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/cache"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/registry/cache"
)
type registrySelector struct {

View File

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

View File

@@ -6,8 +6,8 @@ import (
"net"
"strconv"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
)
type dnsSelector struct {

View File

@@ -1,7 +1,7 @@
package selector
import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/registry"
)
// FilterEndpoint is an endpoint based Select Filter which will

View File

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

View File

@@ -3,7 +3,7 @@ package selector
import (
"context"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/registry"
)
type Options struct {

View File

@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/v2/client/selector"
)
// Set the registry cache ttl

View File

@@ -2,7 +2,7 @@
package registry
import (
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/v2/client/selector"
)
// NewSelector returns a new registry selector

View File

@@ -7,11 +7,11 @@ import (
"sort"
"sync"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/router"
pb "github.com/micro/go-micro/router/service/proto"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/router"
pb "github.com/micro/go-micro/v2/router/service/proto"
)
type routerSelector struct {

View File

@@ -4,7 +4,7 @@ package selector
import (
"errors"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/registry"
)
// Selector builds on the registry as a mechanism to pick nodes

View File

@@ -2,8 +2,8 @@
package static
import (
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
)
// staticSelector is a static selector

View File

@@ -5,7 +5,7 @@ import (
"sync"
"time"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/registry"
)
func init() {

View File

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