1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-29 21:47:44 +02:00

go-micro.dev/v4 (#2305)

This commit is contained in:
Asim Aslam
2021-10-12 12:55:53 +01:00
committed by GitHub
parent d9a6faeb7a
commit 1cd7cfaa6c
705 changed files with 1365 additions and 1365 deletions

View File

@@ -37,7 +37,7 @@ Or as part of a service
import (
"net/http"
"github.com/asim/go-micro/v3"
"go-micro.dev/v4"
"github.com/micro/go-micro/server"
httpServer "github.com/asim/go-micro/plugins/server/http"
)

View File

@@ -6,9 +6,9 @@ import (
"strconv"
"strings"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
"github.com/asim/go-micro/v3/util/addr"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/server"
"go-micro.dev/v4/util/addr"
)
func serviceDef(opts server.Options) *registry.Service {

View File

@@ -4,7 +4,7 @@ go 1.16
require (
github.com/asim/go-micro/plugins/registry/memory/v3 v3.0.0-20210630062103-c13bb07171bc
github.com/asim/go-micro/v3 v3.5.2-0.20210630062103-c13bb07171bc
go-micro.dev/v4 v4.0.0
)
replace (

View File

@@ -1,8 +1,8 @@
package http
import (
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/server"
)
type httpHandler struct {

View File

@@ -11,14 +11,14 @@ import (
"sync"
"time"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/codec/jsonrpc"
"github.com/asim/go-micro/v3/codec/protorpc"
"github.com/asim/go-micro/v3/cmd"
log "github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
"go-micro.dev/v4/broker"
"go-micro.dev/v4/codec"
"go-micro.dev/v4/codec/jsonrpc"
"go-micro.dev/v4/codec/protorpc"
"go-micro.dev/v4/cmd"
log "go-micro.dev/v4/logger"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/server"
)
var (

View File

@@ -7,7 +7,7 @@ import (
"testing"
"github.com/asim/go-micro/plugins/registry/memory/v3"
"github.com/asim/go-micro/v3/server"
"go-micro.dev/v4/server"
)
func TestHTTPServer(t *testing.T) {

View File

@@ -1,6 +1,6 @@
package http
import "github.com/asim/go-micro/v3/codec"
import "go-micro.dev/v4/codec"
type httpMessage struct {
topic string

View File

@@ -3,10 +3,10 @@ package http
import (
"context"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
"go-micro.dev/v4/broker"
"go-micro.dev/v4/codec"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/server"
)
func newOptions(opt ...server.Option) server.Options {

View File

@@ -9,11 +9,11 @@ import (
"unicode"
"unicode/utf8"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/codec"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/registry"
"github.com/asim/go-micro/v3/server"
"go-micro.dev/v4/broker"
"go-micro.dev/v4/codec"
"go-micro.dev/v4/metadata"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/server"
)
const (