From 07a08b478f8065a52310b9f1b392524c3336e717 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 27 Jul 2020 13:22:00 +0100 Subject: [PATCH] v3 refactor (#1868) * Move to v3 Co-authored-by: Ben Toogood --- rpc.go | 26 +++++++++++++------------- rpc_test.go | 2 +- stream.go | 10 +++++----- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/rpc.go b/rpc.go index 5243c25..f51e7a6 100644 --- a/rpc.go +++ b/rpc.go @@ -9,19 +9,19 @@ import ( "strings" jsonpatch "github.com/evanphx/json-patch/v5" - "github.com/micro/go-micro/v2/api" - "github.com/micro/go-micro/v2/api/handler" - "github.com/micro/go-micro/v2/api/handler/util" - "github.com/micro/go-micro/v2/api/internal/proto" - "github.com/micro/go-micro/v2/client" - "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/logger" - "github.com/micro/go-micro/v2/metadata" - "github.com/micro/go-micro/v2/util/ctx" - "github.com/micro/go-micro/v2/util/qson" + "github.com/micro/go-micro/v3/api" + "github.com/micro/go-micro/v3/api/handler" + "github.com/micro/go-micro/v3/api/handler/util" + "github.com/micro/go-micro/v3/api/internal/proto" + "github.com/micro/go-micro/v3/client" + "github.com/micro/go-micro/v3/codec" + "github.com/micro/go-micro/v3/codec/jsonrpc" + "github.com/micro/go-micro/v3/codec/protorpc" + "github.com/micro/go-micro/v3/errors" + "github.com/micro/go-micro/v3/logger" + "github.com/micro/go-micro/v3/metadata" + "github.com/micro/go-micro/v3/util/ctx" + "github.com/micro/go-micro/v3/util/qson" "github.com/oxtoacart/bpool" ) diff --git a/rpc_test.go b/rpc_test.go index 1b602f8..8b6cd0b 100644 --- a/rpc_test.go +++ b/rpc_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/golang/protobuf/proto" - go_api "github.com/micro/go-micro/v2/api/proto" + go_api "github.com/micro/go-micro/v3/api/proto" ) func TestRequestPayloadFromRequest(t *testing.T) { diff --git a/stream.go b/stream.go index b51d59d..1078cdc 100644 --- a/stream.go +++ b/stream.go @@ -12,11 +12,11 @@ import ( "github.com/gobwas/httphead" "github.com/gobwas/ws" "github.com/gobwas/ws/wsutil" - "github.com/micro/go-micro/v2/api" - "github.com/micro/go-micro/v2/api/handler/util" - "github.com/micro/go-micro/v2/client" - raw "github.com/micro/go-micro/v2/codec/bytes" - "github.com/micro/go-micro/v2/logger" + "github.com/micro/go-micro/v3/api" + "github.com/micro/go-micro/v3/api/handler/util" + "github.com/micro/go-micro/v3/client" + raw "github.com/micro/go-micro/v3/codec/bytes" + "github.com/micro/go-micro/v3/logger" ) // serveWebsocket will stream rpc back over websockets assuming json