var File_test_proto protoreflect.FileDescriptor
Test_ServiceDesc is the grpc.ServiceDesc for Test service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Test_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Test", HandlerType: (*TestServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Test", Handler: _Test_Test_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test.proto", }
func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)
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.
type TestClient interface { Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error) }
func NewTestClient(cc grpc.ClientConnInterface) TestClient
type TestRequest struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (x *TestRequest) GetA() string
func (x *TestRequest) GetB() int64
func (*TestRequest) ProtoMessage()
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (x *TestRequest) Reset()
func (x *TestRequest) String() string
type TestResponse struct { V string `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"` // contains filtered or unexported fields }
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (x *TestResponse) GetV() string
func (*TestResponse) ProtoMessage()
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (x *TestResponse) Reset()
func (x *TestResponse) String() string
TestServer is the server API for Test service. All implementations must embed UnimplementedTestServer for forward compatibility
type TestServer interface { Test(context.Context, *TestRequest) (*TestResponse, error) // contains filtered or unexported methods }
UnimplementedTestServer must be embedded to have forward compatible implementations.
type UnimplementedTestServer struct { }
func (UnimplementedTestServer) Test(context.Context, *TestRequest) (*TestResponse, error)
UnsafeTestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServer will result in compilation errors.
type UnsafeTestServer interface {
// contains filtered or unexported methods
}