Skip to content

Commit

Permalink
fix import paths for v2 release
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
  • Loading branch information
vtolstov committed Jan 30, 2020
1 parent 2b1e0a6 commit f23638c
Show file tree
Hide file tree
Showing 347 changed files with 864 additions and 820 deletions.
4 changes: 2 additions & 2 deletions agent/input/discord/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"

"github.com/bwmarrin/discordgo"
"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/util/log"
"github.com/micro/go-micro/v2/agent/input"
"github.com/micro/go-micro/v2/util/log"
)

type discordConn struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/input/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/bwmarrin/discordgo"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/v2/agent/input"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion agent/input/slack/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/v2/agent/input"
"github.com/nlopes/slack"
)

Expand Down
2 changes: 1 addition & 1 deletion agent/input/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"

"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/v2/agent/input"
"github.com/nlopes/slack"
)

Expand Down
4 changes: 2 additions & 2 deletions agent/input/telegram/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"

"github.com/forestgiant/sliceutil"
"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/util/log"
"github.com/micro/go-micro/v2/agent/input"
"github.com/micro/go-micro/v2/util/log"
tgbotapi "gopkg.in/telegram-bot-api.v4"
)

Expand Down
2 changes: 1 addition & 1 deletion agent/input/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"

"github.com/micro/cli/v2"
"github.com/micro/go-micro/agent/input"
"github.com/micro/go-micro/v2/agent/input"
tgbotapi "gopkg.in/telegram-bot-api.v4"
)

Expand Down
4 changes: 2 additions & 2 deletions agent/proto/bot.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions agent/proto/bot.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"regexp"
"strings"

"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/server"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/server"
)

// Endpoint is a mapping between an RPC method and HTTP endpoint
Expand Down
14 changes: 7 additions & 7 deletions api/handler/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ package api
import (
"net/http"

goapi "github.com/micro/go-micro/api"
"github.com/micro/go-micro/api/handler"
api "github.com/micro/go-micro/api/proto"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/errors"
"github.com/micro/go-micro/util/ctx"
goapi "github.com/micro/go-micro/v2/api"
"github.com/micro/go-micro/v2/api/handler"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/util/ctx"
)

type apiHandler struct {
Expand Down
6 changes: 3 additions & 3 deletions api/handler/api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"net/http"
"strings"

api "github.com/micro/go-micro/api/proto"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/registry"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
)

func requestToProto(r *http.Request) (*api.Request, error) {
Expand Down
6 changes: 3 additions & 3 deletions api/handler/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/util/log"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/util/log"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions api/handler/cloudevents/cloudevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"regexp"
"strings"

"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/util/ctx"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/util/ctx"
)

type event struct {
Expand Down
6 changes: 3 additions & 3 deletions api/handler/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"time"

"github.com/google/uuid"
"github.com/micro/go-micro/api/handler"
proto "github.com/micro/go-micro/api/proto"
"github.com/micro/go-micro/util/ctx"
"github.com/micro/go-micro/v2/api/handler"
proto "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/util/ctx"
)

type event struct {
Expand Down
6 changes: 3 additions & 3 deletions api/handler/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"net/http/httputil"
"net/url"

"github.com/micro/go-micro/api"
"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/v2/api"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/client/selector"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions api/handler/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"net/http/httptest"
"testing"

"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/api/router"
regRouter "github.com/micro/go-micro/api/router/registry"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/memory"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/api/router"
regRouter "github.com/micro/go-micro/v2/api/router/registry"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/registry/memory"
)

func testHttp(t *testing.T, path, service, ns string) {
Expand Down
4 changes: 2 additions & 2 deletions api/handler/options.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
"github.com/micro/go-micro"
"github.com/micro/go-micro/api/router"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/api/router"
)

type Options struct {
Expand Down
4 changes: 2 additions & 2 deletions api/handler/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/registry"
)

const (
Expand Down
22 changes: 11 additions & 11 deletions api/handler/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
"strings"

"github.com/joncalhoun/qson"
"github.com/micro/go-micro/api"
"github.com/micro/go-micro/api/handler"
proto "github.com/micro/go-micro/api/internal/proto"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/codec"
"github.com/micro/go-micro/codec/jsonrpc"
"github.com/micro/go-micro/codec/protorpc"
"github.com/micro/go-micro/errors"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/util/ctx"
"github.com/micro/go-micro/v2/api"
"github.com/micro/go-micro/v2/api/handler"
proto "github.com/micro/go-micro/v2/api/internal/proto"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/codec"
"github.com/micro/go-micro/v2/codec/jsonrpc"
"github.com/micro/go-micro/v2/codec/protorpc"
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/util/ctx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/handler/rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/golang/protobuf/proto"
go_api "github.com/micro/go-micro/api/proto"
go_api "github.com/micro/go-micro/v2/api/proto"
)

func TestRequestPayloadFromRequest(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions api/handler/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"net/url"
"strings"

"github.com/micro/go-micro/api"
"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/v2/api"
"github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/client/selector"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions api/proto/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/proto/api.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/resolver/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"strings"

"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/v2/api/resolver"
)

type Resolver struct{}
Expand Down
2 changes: 1 addition & 1 deletion api/resolver/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package host
import (
"net/http"

"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/v2/api/resolver"
)

type Resolver struct{}
Expand Down
2 changes: 1 addition & 1 deletion api/resolver/micro/micro.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package micro
import (
"net/http"

"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/v2/api/resolver"
)

// default resolver for legacy purposes
Expand Down
2 changes: 1 addition & 1 deletion api/resolver/path/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"strings"

"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/v2/api/resolver"
)

type Resolver struct{}
Expand Down
2 changes: 1 addition & 1 deletion api/resolver/vpath/vpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"strings"

"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/v2/api/resolver"
)

type Resolver struct{}
Expand Down
6 changes: 3 additions & 3 deletions api/router/options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package router

import (
"github.com/micro/go-micro/api/resolver"
"github.com/micro/go-micro/api/resolver/micro"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/v2/api/resolver"
"github.com/micro/go-micro/v2/api/resolver/micro"
"github.com/micro/go-micro/v2/registry"
)

type Options struct {
Expand Down
8 changes: 4 additions & 4 deletions api/router/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync"
"time"

"github.com/micro/go-micro/api"
"github.com/micro/go-micro/api/router"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/cache"
"github.com/micro/go-micro/v2/api"
"github.com/micro/go-micro/v2/api/router"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/registry/cache"
)

// router is the default router
Expand Down
2 changes: 1 addition & 1 deletion api/router/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"testing"

"github.com/micro/go-micro/api"
"github.com/micro/go-micro/v2/api"
)

func TestSetNamespace(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package router
import (
"net/http"

"github.com/micro/go-micro/api"
"github.com/micro/go-micro/v2/api"
)

// Router is used to determine an endpoint for a request
Expand Down
2 changes: 1 addition & 1 deletion api/server/acme/autocert/autocert.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package autocert
import (
"net"

"github.com/micro/go-micro/api/server/acme"
"github.com/micro/go-micro/v2/api/server/acme"
"golang.org/x/crypto/acme/autocert"
)

Expand Down
Loading

0 comments on commit f23638c

Please sign in to comment.