Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDataProcessServer(s grpc.ServiceRegistrar, srv DataProcessServer)
- type DataProcessClient
- type DataProcessServer
- type DataRequest
- type DataResponse
- func (*DataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DataResponse) GetAge() int32
- func (x *DataResponse) GetHeight() float32
- func (x *DataResponse) GetIsMarried() bool
- func (x *DataResponse) GetMessage() string
- func (x *DataResponse) GetName() string
- func (x *DataResponse) GetRecord() *timestamppb.Timestamp
- func (*DataResponse) ProtoMessage()
- func (x *DataResponse) ProtoReflect() protoreflect.Message
- func (x *DataResponse) Reset()
- func (x *DataResponse) String() string
- type UnimplementedDataProcessServer
- type UnsafeDataProcessServer
Constants ¶
const (
DataProcess_SendData_FullMethodName = "/proto.DataProcess/SendData"
)
Variables ¶
var DataProcess_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.DataProcess", HandlerType: (*DataProcessServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendData", Handler: _DataProcess_SendData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example.proto", }
DataProcess_ServiceDesc is the grpc.ServiceDesc for DataProcess service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDataProcessServer ¶
func RegisterDataProcessServer(s grpc.ServiceRegistrar, srv DataProcessServer)
Types ¶
type DataProcessClient ¶
type DataProcessClient interface {
SendData(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (*DataResponse, error)
}
DataProcessClient is the client API for DataProcess 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.
func NewDataProcessClient ¶
func NewDataProcessClient(cc grpc.ClientConnInterface) DataProcessClient
type DataProcessServer ¶
type DataProcessServer interface { SendData(context.Context, *DataRequest) (*DataResponse, error) // contains filtered or unexported methods }
DataProcessServer is the server API for DataProcess service. All implementations must embed UnimplementedDataProcessServer for forward compatibility
type DataRequest ¶
type DataRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DataRequest) Descriptor
deprecated
func (*DataRequest) Descriptor() ([]byte, []int)
Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
func (*DataRequest) GetName ¶
func (x *DataRequest) GetName() string
func (*DataRequest) ProtoMessage ¶
func (*DataRequest) ProtoMessage()
func (*DataRequest) ProtoReflect ¶
func (x *DataRequest) ProtoReflect() protoreflect.Message
func (*DataRequest) Reset ¶
func (x *DataRequest) Reset()
func (*DataRequest) String ¶
func (x *DataRequest) String() string
type DataResponse ¶
type DataResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Height float32 `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"` IsMarried bool `protobuf:"varint,5,opt,name=isMarried,proto3" json:"isMarried,omitempty"` Record *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*DataResponse) Descriptor
deprecated
func (*DataResponse) Descriptor() ([]byte, []int)
Deprecated: Use DataResponse.ProtoReflect.Descriptor instead.
func (*DataResponse) GetAge ¶
func (x *DataResponse) GetAge() int32
func (*DataResponse) GetHeight ¶
func (x *DataResponse) GetHeight() float32
func (*DataResponse) GetIsMarried ¶
func (x *DataResponse) GetIsMarried() bool
func (*DataResponse) GetMessage ¶
func (x *DataResponse) GetMessage() string
func (*DataResponse) GetName ¶
func (x *DataResponse) GetName() string
func (*DataResponse) GetRecord ¶
func (x *DataResponse) GetRecord() *timestamppb.Timestamp
func (*DataResponse) ProtoMessage ¶
func (*DataResponse) ProtoMessage()
func (*DataResponse) ProtoReflect ¶
func (x *DataResponse) ProtoReflect() protoreflect.Message
func (*DataResponse) Reset ¶
func (x *DataResponse) Reset()
func (*DataResponse) String ¶
func (x *DataResponse) String() string
type UnimplementedDataProcessServer ¶
type UnimplementedDataProcessServer struct { }
UnimplementedDataProcessServer must be embedded to have forward compatible implementations.
func (UnimplementedDataProcessServer) SendData ¶
func (UnimplementedDataProcessServer) SendData(context.Context, *DataRequest) (*DataResponse, error)
type UnsafeDataProcessServer ¶
type UnsafeDataProcessServer interface {
// contains filtered or unexported methods
}
UnsafeDataProcessServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataProcessServer will result in compilation errors.