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

@@ -5,10 +5,10 @@ import (
"math"
"time"
"github.com/micro/go-micro/sync/leader/etcd"
"github.com/micro/go-micro/sync/task"
"github.com/micro/go-micro/sync/task/local"
"github.com/micro/go-micro/util/log"
"github.com/micro/go-micro/v2/sync/leader/etcd"
"github.com/micro/go-micro/v2/sync/task"
"github.com/micro/go-micro/v2/sync/task/local"
"github.com/micro/go-micro/v2/util/log"
)
type syncCron struct {

View File

@@ -8,7 +8,7 @@ import (
client "github.com/coreos/etcd/clientv3"
cc "github.com/coreos/etcd/clientv3/concurrency"
"github.com/micro/go-micro/sync/leader"
"github.com/micro/go-micro/v2/sync/leader"
)
type etcdLeader struct {

View File

@@ -11,7 +11,7 @@ import (
client "github.com/coreos/etcd/clientv3"
cc "github.com/coreos/etcd/clientv3/concurrency"
"github.com/micro/go-micro/sync/lock"
"github.com/micro/go-micro/v2/sync/lock"
)
type etcdLock struct {

View File

@@ -11,7 +11,7 @@ import (
"path/filepath"
"strings"
"github.com/micro/go-micro/sync/lock"
"github.com/micro/go-micro/v2/sync/lock"
)
var (

View File

@@ -4,8 +4,8 @@ package server
import (
"net/http"
"github.com/micro/go-micro/sync/lock"
lkhttp "github.com/micro/go-micro/sync/lock/http"
"github.com/micro/go-micro/v2/sync/lock"
lkhttp "github.com/micro/go-micro/v2/sync/lock/http"
)
func Handler(lk lock.Lock) http.Handler {

View File

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

View File

@@ -7,9 +7,9 @@ import (
"fmt"
"sort"
"github.com/micro/go-micro/store"
ckv "github.com/micro/go-micro/store/etcd"
lock "github.com/micro/go-micro/sync/lock/etcd"
"github.com/micro/go-micro/v2/store"
ckv "github.com/micro/go-micro/v2/store/etcd"
lock "github.com/micro/go-micro/v2/sync/lock/etcd"
)
type syncMap struct {

View File

@@ -1,10 +1,10 @@
package sync
import (
"github.com/micro/go-micro/store"
"github.com/micro/go-micro/sync/leader"
"github.com/micro/go-micro/sync/lock"
"github.com/micro/go-micro/sync/time"
"github.com/micro/go-micro/v2/store"
"github.com/micro/go-micro/v2/sync/leader"
"github.com/micro/go-micro/v2/sync/lock"
"github.com/micro/go-micro/v2/sync/time"
)
// WithLeader sets the leader election implementation opton

View File

@@ -2,11 +2,11 @@
package sync
import (
"github.com/micro/go-micro/store"
"github.com/micro/go-micro/sync/leader"
"github.com/micro/go-micro/sync/lock"
"github.com/micro/go-micro/sync/task"
"github.com/micro/go-micro/sync/time"
"github.com/micro/go-micro/v2/store"
"github.com/micro/go-micro/v2/sync/leader"
"github.com/micro/go-micro/v2/sync/lock"
"github.com/micro/go-micro/v2/sync/task"
"github.com/micro/go-micro/v2/sync/time"
)
// Map provides synchronized access to key-value storage.

View File

@@ -11,8 +11,8 @@ import (
"time"
"github.com/google/uuid"
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/sync/task"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/sync/task"
)
type brokerKey struct{}

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"sync"
"github.com/micro/go-micro/sync/task"
"github.com/micro/go-micro/v2/sync/task"
)
type localTask struct {

View File

@@ -4,7 +4,7 @@ package local
import (
gotime "time"
"github.com/micro/go-micro/sync/time"
"github.com/micro/go-micro/v2/sync/time"
)
type Time struct{}

View File

@@ -6,7 +6,7 @@ import (
gotime "time"
"github.com/beevik/ntp"
"github.com/micro/go-micro/sync/time"
"github.com/micro/go-micro/v2/sync/time"
)
type ntpTime struct {