|
|
|
@@ -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,10 @@ import (
|
|
|
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
Test_Call_FullMethodName = "/helloworld.Test/Call"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
@@ -35,7 +39,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
|
|
|
|
|
}
|
|
|
|
@@ -80,7 +84,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))
|
|
|
|
|