Documentation ¶
Index ¶
- Variables
- func RegisterStudentServer(s grpc.ServiceRegistrar, srv StudentServer)
- type StudentClient
- type StudentEntity
- func (*StudentEntity) Descriptor() ([]byte, []int)deprecated
- func (x *StudentEntity) GetAge() int64
- func (x *StudentEntity) GetDateTime() *timestamppb.Timestamp
- func (x *StudentEntity) GetDoubleValue() float64
- func (x *StudentEntity) GetName() string
- func (*StudentEntity) ProtoMessage()
- func (x *StudentEntity) ProtoReflect() protoreflect.Message
- func (x *StudentEntity) Reset()
- func (x *StudentEntity) String() string
- type StudentReply
- func (*StudentReply) Descriptor() ([]byte, []int)deprecated
- func (x *StudentReply) GetCount() int64
- func (x *StudentReply) GetDocument() *StudentEntity
- func (x *StudentReply) GetDocuments() []*StudentEntity
- func (x *StudentReply) GetLimit() int64
- func (x *StudentReply) GetMessage() string
- func (x *StudentReply) GetOffset() int64
- func (x *StudentReply) GetStatus() int64
- func (*StudentReply) ProtoMessage()
- func (x *StudentReply) ProtoReflect() protoreflect.Message
- func (x *StudentReply) Reset()
- func (x *StudentReply) String() string
- type StudentRequest
- func (*StudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StudentRequest) GetAge() int64
- func (x *StudentRequest) GetName() string
- func (*StudentRequest) ProtoMessage()
- func (x *StudentRequest) ProtoReflect() protoreflect.Message
- func (x *StudentRequest) Reset()
- func (x *StudentRequest) String() string
- type StudentServer
- type UnimplementedStudentServer
- type UnsafeStudentServer
Constants ¶
This section is empty.
Variables ¶
var File_test_proto protoreflect.FileDescriptor
var Student_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Student", HandlerType: (*StudentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Read", Handler: _Student_Read_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test.proto", }
Student_ServiceDesc is the grpc.ServiceDesc for Student service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStudentServer ¶
func RegisterStudentServer(s grpc.ServiceRegistrar, srv StudentServer)
Types ¶
type StudentClient ¶
type StudentClient interface {
Read(ctx context.Context, in *StudentRequest, opts ...grpc.CallOption) (*StudentReply, error)
}
StudentClient is the client API for Student 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 NewStudentClient ¶
func NewStudentClient(cc grpc.ClientConnInterface) StudentClient
type StudentEntity ¶
type StudentEntity struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Age int64 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` DateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=dateTime,proto3" json:"dateTime,omitempty"` DoubleValue float64 `protobuf:"fixed64,4,opt,name=doubleValue,proto3" json:"doubleValue,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*StudentEntity) Descriptor
deprecated
func (*StudentEntity) Descriptor() ([]byte, []int)
Deprecated: Use StudentEntity.ProtoReflect.Descriptor instead.
func (*StudentEntity) GetAge ¶
func (x *StudentEntity) GetAge() int64
func (*StudentEntity) GetDateTime ¶
func (x *StudentEntity) GetDateTime() *timestamppb.Timestamp
func (*StudentEntity) GetDoubleValue ¶
func (x *StudentEntity) GetDoubleValue() float64
func (*StudentEntity) GetName ¶
func (x *StudentEntity) GetName() string
func (*StudentEntity) ProtoMessage ¶
func (*StudentEntity) ProtoMessage()
func (*StudentEntity) ProtoReflect ¶
func (x *StudentEntity) ProtoReflect() protoreflect.Message
func (*StudentEntity) Reset ¶
func (x *StudentEntity) Reset()
func (*StudentEntity) String ¶
func (x *StudentEntity) String() string
type StudentReply ¶
type StudentReply struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"` Count *int64 `protobuf:"varint,3,opt,name=count,proto3,oneof" json:"count,omitempty"` Offset *int64 `protobuf:"varint,4,opt,name=offset,proto3,oneof" json:"offset,omitempty"` Limit *int64 `protobuf:"varint,5,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Document *StudentEntity `protobuf:"bytes,6,opt,name=document,proto3,oneof" json:"document,omitempty"` Documents []*StudentEntity `protobuf:"bytes,7,rep,name=documents,proto3" json:"documents,omitempty"` // contains filtered or unexported fields }
func (*StudentReply) Descriptor
deprecated
func (*StudentReply) Descriptor() ([]byte, []int)
Deprecated: Use StudentReply.ProtoReflect.Descriptor instead.
func (*StudentReply) GetCount ¶
func (x *StudentReply) GetCount() int64
func (*StudentReply) GetDocument ¶
func (x *StudentReply) GetDocument() *StudentEntity
func (*StudentReply) GetDocuments ¶
func (x *StudentReply) GetDocuments() []*StudentEntity
func (*StudentReply) GetLimit ¶
func (x *StudentReply) GetLimit() int64
func (*StudentReply) GetMessage ¶
func (x *StudentReply) GetMessage() string
func (*StudentReply) GetOffset ¶
func (x *StudentReply) GetOffset() int64
func (*StudentReply) GetStatus ¶
func (x *StudentReply) GetStatus() int64
func (*StudentReply) ProtoMessage ¶
func (*StudentReply) ProtoMessage()
func (*StudentReply) ProtoReflect ¶
func (x *StudentReply) ProtoReflect() protoreflect.Message
func (*StudentReply) Reset ¶
func (x *StudentReply) Reset()
func (*StudentReply) String ¶
func (x *StudentReply) String() string
type StudentRequest ¶
type StudentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Age int64 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*StudentRequest) Descriptor
deprecated
func (*StudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use StudentRequest.ProtoReflect.Descriptor instead.
func (*StudentRequest) GetAge ¶
func (x *StudentRequest) GetAge() int64
func (*StudentRequest) GetName ¶
func (x *StudentRequest) GetName() string
func (*StudentRequest) ProtoMessage ¶
func (*StudentRequest) ProtoMessage()
func (*StudentRequest) ProtoReflect ¶
func (x *StudentRequest) ProtoReflect() protoreflect.Message
func (*StudentRequest) Reset ¶
func (x *StudentRequest) Reset()
func (*StudentRequest) String ¶
func (x *StudentRequest) String() string
type StudentServer ¶
type StudentServer interface { Read(context.Context, *StudentRequest) (*StudentReply, error) // contains filtered or unexported methods }
StudentServer is the server API for Student service. All implementations must embed UnimplementedStudentServer for forward compatibility
type UnimplementedStudentServer ¶
type UnimplementedStudentServer struct { }
UnimplementedStudentServer must be embedded to have forward compatible implementations.
func (UnimplementedStudentServer) Read ¶
func (UnimplementedStudentServer) Read(context.Context, *StudentRequest) (*StudentReply, error)
type UnsafeStudentServer ¶
type UnsafeStudentServer interface {
// contains filtered or unexported methods
}
UnsafeStudentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StudentServer will result in compilation errors.