Documentation ¶
Index ¶
- Variables
- func RegisterStudentSrvServer(s *grpc.Server, srv StudentSrvServer)
- type QueryStudent
- type QueryStudentResponse
- func (*QueryStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStudentResponse) GetStudentList() []*model.Student
- func (*QueryStudentResponse) ProtoMessage()
- func (x *QueryStudentResponse) ProtoReflect() protoreflect.Message
- func (x *QueryStudentResponse) Reset()
- func (x *QueryStudentResponse) String() string
- type StudentSrvClient
- type StudentSrvServer
- type StudentSrv_AllStudentClient
- type StudentSrv_AllStudentServer
- type StudentSrv_QueryStudentsClient
- type StudentSrv_QueryStudentsServer
- type StudentSrv_StudentInfoClient
- type StudentSrv_StudentInfoServer
- type UnimplementedStudentSrvServer
- func (*UnimplementedStudentSrvServer) AllStudent(*empty.Empty, StudentSrv_AllStudentServer) error
- func (*UnimplementedStudentSrvServer) NewStudent(context.Context, *model.Student) (*protos.Result, error)
- func (*UnimplementedStudentSrvServer) QueryStudents(*QueryStudent, StudentSrv_QueryStudentsServer) error
- func (*UnimplementedStudentSrvServer) StudentByID(context.Context, *QueryStudent) (*QueryStudentResponse, error)
- func (*UnimplementedStudentSrvServer) StudentInfo(StudentSrv_StudentInfoServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protos_api_student_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStudentSrvServer ¶
func RegisterStudentSrvServer(s *grpc.Server, srv StudentSrvServer)
Types ¶
type QueryStudent ¶
type QueryStudent struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryStudent) Descriptor
deprecated
func (*QueryStudent) Descriptor() ([]byte, []int)
Deprecated: Use QueryStudent.ProtoReflect.Descriptor instead.
func (*QueryStudent) GetId ¶
func (x *QueryStudent) GetId() int64
func (*QueryStudent) ProtoMessage ¶
func (*QueryStudent) ProtoMessage()
func (*QueryStudent) ProtoReflect ¶
func (x *QueryStudent) ProtoReflect() protoreflect.Message
func (*QueryStudent) Reset ¶
func (x *QueryStudent) Reset()
func (*QueryStudent) String ¶
func (x *QueryStudent) String() string
type QueryStudentResponse ¶
type QueryStudentResponse struct { StudentList []*model.Student `protobuf:"bytes,1,rep,name=studentList,proto3" json:"studentList,omitempty"` // contains filtered or unexported fields }
func (*QueryStudentResponse) Descriptor
deprecated
func (*QueryStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryStudentResponse.ProtoReflect.Descriptor instead.
func (*QueryStudentResponse) GetStudentList ¶
func (x *QueryStudentResponse) GetStudentList() []*model.Student
func (*QueryStudentResponse) ProtoMessage ¶
func (*QueryStudentResponse) ProtoMessage()
func (*QueryStudentResponse) ProtoReflect ¶
func (x *QueryStudentResponse) ProtoReflect() protoreflect.Message
func (*QueryStudentResponse) Reset ¶
func (x *QueryStudentResponse) Reset()
func (*QueryStudentResponse) String ¶
func (x *QueryStudentResponse) String() string
type StudentSrvClient ¶
type StudentSrvClient interface { NewStudent(ctx context.Context, in *model.Student, opts ...grpc.CallOption) (*protos.Result, error) StudentByID(ctx context.Context, in *QueryStudent, opts ...grpc.CallOption) (*QueryStudentResponse, error) AllStudent(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (StudentSrv_AllStudentClient, error) QueryStudents(ctx context.Context, in *QueryStudent, opts ...grpc.CallOption) (StudentSrv_QueryStudentsClient, error) StudentInfo(ctx context.Context, opts ...grpc.CallOption) (StudentSrv_StudentInfoClient, error) }
StudentSrvClient is the client API for StudentSrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStudentSrvClient ¶
func NewStudentSrvClient(cc grpc.ClientConnInterface) StudentSrvClient
type StudentSrvServer ¶
type StudentSrvServer interface { NewStudent(context.Context, *model.Student) (*protos.Result, error) StudentByID(context.Context, *QueryStudent) (*QueryStudentResponse, error) AllStudent(*empty.Empty, StudentSrv_AllStudentServer) error QueryStudents(*QueryStudent, StudentSrv_QueryStudentsServer) error StudentInfo(StudentSrv_StudentInfoServer) error }
StudentSrvServer is the server API for StudentSrv service.
type StudentSrv_AllStudentClient ¶
type StudentSrv_AllStudentClient interface { Recv() (*QueryStudentResponse, error) grpc.ClientStream }
type StudentSrv_AllStudentServer ¶
type StudentSrv_AllStudentServer interface { Send(*QueryStudentResponse) error grpc.ServerStream }
type StudentSrv_QueryStudentsClient ¶
type StudentSrv_QueryStudentsClient interface { Recv() (*QueryStudentResponse, error) grpc.ClientStream }
type StudentSrv_QueryStudentsServer ¶
type StudentSrv_QueryStudentsServer interface { Send(*QueryStudentResponse) error grpc.ServerStream }
type StudentSrv_StudentInfoClient ¶
type StudentSrv_StudentInfoClient interface { Send(*QueryStudent) error Recv() (*QueryStudentResponse, error) grpc.ClientStream }
type StudentSrv_StudentInfoServer ¶
type StudentSrv_StudentInfoServer interface { Send(*QueryStudentResponse) error Recv() (*QueryStudent, error) grpc.ServerStream }
type UnimplementedStudentSrvServer ¶
type UnimplementedStudentSrvServer struct { }
UnimplementedStudentSrvServer can be embedded to have forward compatible implementations.
func (*UnimplementedStudentSrvServer) AllStudent ¶
func (*UnimplementedStudentSrvServer) AllStudent(*empty.Empty, StudentSrv_AllStudentServer) error
func (*UnimplementedStudentSrvServer) NewStudent ¶
func (*UnimplementedStudentSrvServer) QueryStudents ¶
func (*UnimplementedStudentSrvServer) QueryStudents(*QueryStudent, StudentSrv_QueryStudentsServer) error
func (*UnimplementedStudentSrvServer) StudentByID ¶
func (*UnimplementedStudentSrvServer) StudentByID(context.Context, *QueryStudent) (*QueryStudentResponse, error)
func (*UnimplementedStudentSrvServer) StudentInfo ¶
func (*UnimplementedStudentSrvServer) StudentInfo(StudentSrv_StudentInfoServer) error
Click to show internal directories.
Click to hide internal directories.