initial v4
Some checks failed
test / test (push) Failing after 1m53s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-05-13 06:25:11 +03:00
parent 290f8a1f9a
commit f253aacfa1
73 changed files with 579 additions and 1534 deletions

View File

@@ -3,8 +3,8 @@ package codec
import (
"testing"
jsoncodec "go.unistack.org/micro-codec-json/v3"
"go.unistack.org/micro/v3/codec"
jsoncodec "go.unistack.org/micro-codec-json/v4"
"go.unistack.org/micro/v4/codec"
)
func TestFrame(t *testing.T) {

View File

@@ -1,3 +1,3 @@
package codec
//go:generate sh -c "protoc -I./proto -I. -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro/v3) -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3) --go_out=paths=source_relative:./proto --go-micro_out=components='micro|http',debug=true,paths=source_relative:./proto proto/test.proto"
//go:generate sh -c "protoc -I./proto -I. -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro/v4) -I$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3) --go_out=paths=source_relative:./proto --go-micro_out=components='micro|http',debug=true,paths=source_relative:./proto proto/test.proto"

View File

@@ -7,7 +7,7 @@
package pb
import (
codec "go.unistack.org/micro/v3/codec"
codec "go.unistack.org/micro/v4/codec"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"

View File

@@ -8,8 +8,8 @@ package pb
import (
context "context"
client "go.unistack.org/micro/v3/client"
codec "go.unistack.org/micro/v3/codec"
client "go.unistack.org/micro/v4/client"
codec "go.unistack.org/micro/v4/codec"
)
var (

View File

@@ -6,10 +6,10 @@ package pb
import (
context "context"
_ "go.unistack.org/micro-client-http/v3"
client "go.unistack.org/micro/v3/client"
codec "go.unistack.org/micro/v3/codec"
server "go.unistack.org/micro/v3/server"
_ "go.unistack.org/micro-client-http/v4"
client "go.unistack.org/micro/v4/client"
codec "go.unistack.org/micro/v4/codec"
server "go.unistack.org/micro/v4/server"
)
type testClient struct {

View File

@@ -4,17 +4,17 @@ import (
"context"
"testing"
gclient "go.unistack.org/micro-client-grpc/v3"
// protocodec "go.unistack.org/micro-codec-proto/v3"
protocodec "go.unistack.org/micro-codec-segmentio/v3/proto"
regRouter "go.unistack.org/micro-router-register/v3"
gserver "go.unistack.org/micro-server-grpc/v3"
gclient "go.unistack.org/micro-client-grpc/v4"
// protocodec "go.unistack.org/micro-codec-proto/v4"
protocodec "go.unistack.org/micro-codec-segmentio/v4/proto"
regRouter "go.unistack.org/micro-router-register/v4"
gserver "go.unistack.org/micro-server-grpc/v4"
gpb "go.unistack.org/micro-tests/codec/segmentio/proto"
"go.unistack.org/micro/v3/client"
"go.unistack.org/micro/v3/errors"
mregister "go.unistack.org/micro/v3/register/memory"
"go.unistack.org/micro/v3/router"
"go.unistack.org/micro/v3/server"
"go.unistack.org/micro/v4/client"
"go.unistack.org/micro/v4/errors"
mregister "go.unistack.org/micro/v4/register/memory"
"go.unistack.org/micro/v4/router"
"go.unistack.org/micro/v4/server"
)
type testServer struct{}

View File

@@ -8,7 +8,7 @@ package pb
import (
context "context"
client "go.unistack.org/micro/v3/client"
client "go.unistack.org/micro/v4/client"
)
var (

View File

@@ -6,8 +6,8 @@ package pb
import (
context "context"
client "go.unistack.org/micro/v3/client"
server "go.unistack.org/micro/v3/server"
client "go.unistack.org/micro/v4/client"
server "go.unistack.org/micro/v4/server"
)
type testClient struct {