|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
|
|
|
// - protoc-gen-go-grpc v1.3.0
|
|
|
|
|
// - protoc v3.21.12
|
|
|
|
|
// source: test.proto
|
|
|
|
|
|
|
|
|
@@ -18,6 +18,11 @@ import (
|
|
|
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
Test_Call_FullMethodName = "/helloworld.Test/Call"
|
|
|
|
|
Test_Stream_FullMethodName = "/helloworld.Test/Stream"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// TestClient is the client API for Test service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
|
|
@@ -36,7 +41,7 @@ func NewTestClient(cc grpc.ClientConnInterface) TestClient {
|
|
|
|
|
|
|
|
|
|
func (c *testClient) Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
|
|
out := new(Response)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/helloworld.Test/Call", in, out, opts...)
|
|
|
|
|
err := c.cc.Invoke(ctx, Test_Call_FullMethodName, in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -44,7 +49,7 @@ func (c *testClient) Call(ctx context.Context, in *Request, opts ...grpc.CallOpt
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *testClient) Stream(ctx context.Context, opts ...grpc.CallOption) (Test_StreamClient, error) {
|
|
|
|
|
stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[0], "/helloworld.Test/Stream", opts...)
|
|
|
|
|
stream, err := c.cc.NewStream(ctx, &Test_ServiceDesc.Streams[0], Test_Stream_FullMethodName, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -116,7 +121,7 @@ func _Test_Call_Handler(srv interface{}, ctx context.Context, dec func(interface
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/helloworld.Test/Call",
|
|
|
|
|
FullMethod: Test_Call_FullMethodName,
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(TestServer).Call(ctx, req.(*Request))
|
|
|
|
|