@@ -6,6 +6,7 @@ package helloworld
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
proto "go.unistack.org/micro-tests/server/grpc/proto"
|
||||
api "go.unistack.org/micro/v3/api"
|
||||
client "go.unistack.org/micro/v3/client"
|
||||
|
@@ -6,6 +6,7 @@ package helloworld
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
proto "go.unistack.org/micro-tests/server/grpc/proto"
|
||||
api "go.unistack.org/micro/v3/api"
|
||||
client "go.unistack.org/micro/v3/client"
|
||||
|
@@ -7,11 +7,12 @@
|
||||
package helloworld
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
_ "go.unistack.org/micro-proto/v3/api"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -229,12 +230,15 @@ func file_test_proto_rawDescGZIP() []byte {
|
||||
return file_test_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_test_proto_goTypes = []interface{}{
|
||||
(*Request)(nil), // 0: helloworld.Request
|
||||
(*Broken)(nil), // 1: helloworld.Broken
|
||||
(*Response)(nil), // 2: helloworld.Response
|
||||
}
|
||||
var (
|
||||
file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
file_test_proto_goTypes = []interface{}{
|
||||
(*Request)(nil), // 0: helloworld.Request
|
||||
(*Broken)(nil), // 1: helloworld.Broken
|
||||
(*Response)(nil), // 2: helloworld.Response
|
||||
}
|
||||
)
|
||||
|
||||
var file_test_proto_depIdxs = []int32{
|
||||
1, // 0: helloworld.Request.broken:type_name -> helloworld.Broken
|
||||
1, // 1: helloworld.Response.broken:type_name -> helloworld.Broken
|
||||
|
@@ -8,6 +8,7 @@ package helloworld
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
@@ -51,8 +52,7 @@ type TestServer interface {
|
||||
}
|
||||
|
||||
// UnimplementedTestServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedTestServer struct {
|
||||
}
|
||||
type UnimplementedTestServer struct{}
|
||||
|
||||
func (UnimplementedTestServer) Call(context.Context, *Request) (*Response, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
|
||||
|
Reference in New Issue
Block a user