Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStudentsServiceServer(s grpc.ServiceRegistrar, srv StudentsServiceServer)
- type Course
- func (*Course) Descriptor() ([]byte, []int)deprecated
- func (x *Course) GetGrades() []*Grade
- func (x *Course) GetId() string
- func (x *Course) GetName() string
- func (x *Course) GetSemester() string
- func (*Course) ProtoMessage()
- func (x *Course) ProtoReflect() protoreflect.Message
- func (x *Course) Reset()
- func (x *Course) String() string
- type CreateStudentRequest
- func (*CreateStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStudentRequest) GetStudent() *Student
- func (x *CreateStudentRequest) GetToken() string
- func (*CreateStudentRequest) ProtoMessage()
- func (x *CreateStudentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStudentRequest) Reset()
- func (x *CreateStudentRequest) String() string
- type CreateStudentResponse
- func (*CreateStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStudentResponse) GetStudent() *Student
- func (*CreateStudentResponse) ProtoMessage()
- func (x *CreateStudentResponse) ProtoReflect() protoreflect.Message
- func (x *CreateStudentResponse) Reset()
- func (x *CreateStudentResponse) String() string
- type DeleteStudentRequest
- func (*DeleteStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStudentRequest) GetStudent() *Student
- func (x *DeleteStudentRequest) GetToken() string
- func (*DeleteStudentRequest) ProtoMessage()
- func (x *DeleteStudentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteStudentRequest) Reset()
- func (x *DeleteStudentRequest) String() string
- type DeleteStudentResponse
- type GetStudentCoursesRequest
- func (*GetStudentCoursesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentCoursesRequest) GetId() string
- func (x *GetStudentCoursesRequest) GetSemester() string
- func (x *GetStudentCoursesRequest) GetToken() string
- func (*GetStudentCoursesRequest) ProtoMessage()
- func (x *GetStudentCoursesRequest) ProtoReflect() protoreflect.Message
- func (x *GetStudentCoursesRequest) Reset()
- func (x *GetStudentCoursesRequest) String() string
- type GetStudentCoursesResponse
- func (*GetStudentCoursesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentCoursesResponse) GetCourses() []*Course
- func (*GetStudentCoursesResponse) ProtoMessage()
- func (x *GetStudentCoursesResponse) ProtoReflect() protoreflect.Message
- func (x *GetStudentCoursesResponse) Reset()
- func (x *GetStudentCoursesResponse) String() string
- type GetStudentGradesRequest
- func (*GetStudentGradesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentGradesRequest) GetCourseId() string
- func (x *GetStudentGradesRequest) GetId() string
- func (x *GetStudentGradesRequest) GetSemester() string
- func (x *GetStudentGradesRequest) GetToken() string
- func (*GetStudentGradesRequest) ProtoMessage()
- func (x *GetStudentGradesRequest) ProtoReflect() protoreflect.Message
- func (x *GetStudentGradesRequest) Reset()
- func (x *GetStudentGradesRequest) String() string
- type GetStudentGradesResponse
- func (*GetStudentGradesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentGradesResponse) GetGrades() []*Grade
- func (*GetStudentGradesResponse) ProtoMessage()
- func (x *GetStudentGradesResponse) ProtoReflect() protoreflect.Message
- func (x *GetStudentGradesResponse) Reset()
- func (x *GetStudentGradesResponse) String() string
- type GetStudentRequest
- func (*GetStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentRequest) GetId() string
- func (x *GetStudentRequest) GetToken() string
- func (*GetStudentRequest) ProtoMessage()
- func (x *GetStudentRequest) ProtoReflect() protoreflect.Message
- func (x *GetStudentRequest) Reset()
- func (x *GetStudentRequest) String() string
- type GetStudentResponse
- func (*GetStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStudentResponse) GetStudent() *Student
- func (*GetStudentResponse) ProtoMessage()
- func (x *GetStudentResponse) ProtoReflect() protoreflect.Message
- func (x *GetStudentResponse) Reset()
- func (x *GetStudentResponse) String() string
- type Grade
- type Student
- func (*Student) Descriptor() ([]byte, []int)deprecated
- func (x *Student) GetCourses() []*Course
- func (x *Student) GetFirstName() string
- func (x *Student) GetId() string
- func (x *Student) GetSecondName() string
- func (*Student) ProtoMessage()
- func (x *Student) ProtoReflect() protoreflect.Message
- func (x *Student) Reset()
- func (x *Student) String() string
- type StudentsServiceClient
- type StudentsServiceServer
- type UnimplementedStudentsServiceServer
- func (UnimplementedStudentsServiceServer) CreateStudent(context.Context, *CreateStudentRequest) (*CreateStudentResponse, error)
- func (UnimplementedStudentsServiceServer) DeleteStudent(context.Context, *DeleteStudentRequest) (*DeleteStudentResponse, error)
- func (UnimplementedStudentsServiceServer) GetStudent(context.Context, *GetStudentRequest) (*GetStudentResponse, error)
- func (UnimplementedStudentsServiceServer) GetStudentCourses(context.Context, *GetStudentCoursesRequest) (*GetStudentCoursesResponse, error)
- func (UnimplementedStudentsServiceServer) GetStudentGrades(context.Context, *GetStudentGradesRequest) (*GetStudentGradesResponse, error)
- func (UnimplementedStudentsServiceServer) UpdateStudent(context.Context, *UpdateStudentRequest) (*UpdateStudentResponse, error)
- type UnsafeStudentsServiceServer
- type UpdateStudentRequest
- func (*UpdateStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStudentRequest) GetStudent() *Student
- func (x *UpdateStudentRequest) GetToken() string
- func (*UpdateStudentRequest) ProtoMessage()
- func (x *UpdateStudentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStudentRequest) Reset()
- func (x *UpdateStudentRequest) String() string
- type UpdateStudentResponse
- func (*UpdateStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStudentResponse) GetStudent() *Student
- func (*UpdateStudentResponse) ProtoMessage()
- func (x *UpdateStudentResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateStudentResponse) Reset()
- func (x *UpdateStudentResponse) String() string
Constants ¶
const ( StudentsService_GetStudent_FullMethodName = "/students.StudentsService/GetStudent" StudentsService_CreateStudent_FullMethodName = "/students.StudentsService/CreateStudent" StudentsService_UpdateStudent_FullMethodName = "/students.StudentsService/UpdateStudent" StudentsService_GetStudentCourses_FullMethodName = "/students.StudentsService/GetStudentCourses" StudentsService_GetStudentGrades_FullMethodName = "/students.StudentsService/GetStudentGrades" StudentsService_DeleteStudent_FullMethodName = "/students.StudentsService/DeleteStudent" )
Variables ¶
var File_students_microservice_proto protoreflect.FileDescriptor
var StudentsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "students.StudentsService", HandlerType: (*StudentsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStudent", Handler: _StudentsService_GetStudent_Handler, }, { MethodName: "CreateStudent", Handler: _StudentsService_CreateStudent_Handler, }, { MethodName: "UpdateStudent", Handler: _StudentsService_UpdateStudent_Handler, }, { MethodName: "GetStudentCourses", Handler: _StudentsService_GetStudentCourses_Handler, }, { MethodName: "GetStudentGrades", Handler: _StudentsService_GetStudentGrades_Handler, }, { MethodName: "DeleteStudent", Handler: _StudentsService_DeleteStudent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "students-microservice.proto", }
StudentsService_ServiceDesc is the grpc.ServiceDesc for StudentsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStudentsServiceServer ¶
func RegisterStudentsServiceServer(s grpc.ServiceRegistrar, srv StudentsServiceServer)
Types ¶
type Course ¶
type Course struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Semester string `protobuf:"bytes,3,opt,name=semester,proto3" json:"semester,omitempty"` Grades []*Grade `protobuf:"bytes,4,rep,name=grades,proto3" json:"grades,omitempty"` // contains filtered or unexported fields }
Message representing a course.
func (*Course) Descriptor
deprecated
func (*Course) GetSemester ¶
func (*Course) ProtoMessage ¶
func (*Course) ProtoMessage()
func (*Course) ProtoReflect ¶
func (x *Course) ProtoReflect() protoreflect.Message
type CreateStudentRequest ¶
type CreateStudentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Student *Student `protobuf:"bytes,2,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Request message for creating a new student.
func (*CreateStudentRequest) Descriptor
deprecated
func (*CreateStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateStudentRequest.ProtoReflect.Descriptor instead.
func (*CreateStudentRequest) GetStudent ¶
func (x *CreateStudentRequest) GetStudent() *Student
func (*CreateStudentRequest) GetToken ¶
func (x *CreateStudentRequest) GetToken() string
func (*CreateStudentRequest) ProtoMessage ¶
func (*CreateStudentRequest) ProtoMessage()
func (*CreateStudentRequest) ProtoReflect ¶
func (x *CreateStudentRequest) ProtoReflect() protoreflect.Message
func (*CreateStudentRequest) Reset ¶
func (x *CreateStudentRequest) Reset()
func (*CreateStudentRequest) String ¶
func (x *CreateStudentRequest) String() string
type CreateStudentResponse ¶
type CreateStudentResponse struct { Student *Student `protobuf:"bytes,1,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Response message for the result of creating a new student.
func (*CreateStudentResponse) Descriptor
deprecated
func (*CreateStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateStudentResponse.ProtoReflect.Descriptor instead.
func (*CreateStudentResponse) GetStudent ¶
func (x *CreateStudentResponse) GetStudent() *Student
func (*CreateStudentResponse) ProtoMessage ¶
func (*CreateStudentResponse) ProtoMessage()
func (*CreateStudentResponse) ProtoReflect ¶
func (x *CreateStudentResponse) ProtoReflect() protoreflect.Message
func (*CreateStudentResponse) Reset ¶
func (x *CreateStudentResponse) Reset()
func (*CreateStudentResponse) String ¶
func (x *CreateStudentResponse) String() string
type DeleteStudentRequest ¶
type DeleteStudentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Student *Student `protobuf:"bytes,2,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Request message for deleting a student from the system.
func (*DeleteStudentRequest) Descriptor
deprecated
func (*DeleteStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStudentRequest.ProtoReflect.Descriptor instead.
func (*DeleteStudentRequest) GetStudent ¶
func (x *DeleteStudentRequest) GetStudent() *Student
func (*DeleteStudentRequest) GetToken ¶
func (x *DeleteStudentRequest) GetToken() string
func (*DeleteStudentRequest) ProtoMessage ¶
func (*DeleteStudentRequest) ProtoMessage()
func (*DeleteStudentRequest) ProtoReflect ¶
func (x *DeleteStudentRequest) ProtoReflect() protoreflect.Message
func (*DeleteStudentRequest) Reset ¶
func (x *DeleteStudentRequest) Reset()
func (*DeleteStudentRequest) String ¶
func (x *DeleteStudentRequest) String() string
type DeleteStudentResponse ¶
type DeleteStudentResponse struct {
// contains filtered or unexported fields
}
Response message after deleting a student (no data is returned).
func (*DeleteStudentResponse) Descriptor
deprecated
func (*DeleteStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStudentResponse.ProtoReflect.Descriptor instead.
func (*DeleteStudentResponse) ProtoMessage ¶
func (*DeleteStudentResponse) ProtoMessage()
func (*DeleteStudentResponse) ProtoReflect ¶
func (x *DeleteStudentResponse) ProtoReflect() protoreflect.Message
func (*DeleteStudentResponse) Reset ¶
func (x *DeleteStudentResponse) Reset()
func (*DeleteStudentResponse) String ¶
func (x *DeleteStudentResponse) String() string
type GetStudentCoursesRequest ¶
type GetStudentCoursesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Semester string `protobuf:"bytes,3,opt,name=semester,proto3" json:"semester,omitempty"` // contains filtered or unexported fields }
Request message for fetching the list of courses a student is enrolled in.
func (*GetStudentCoursesRequest) Descriptor
deprecated
func (*GetStudentCoursesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentCoursesRequest.ProtoReflect.Descriptor instead.
func (*GetStudentCoursesRequest) GetId ¶
func (x *GetStudentCoursesRequest) GetId() string
func (*GetStudentCoursesRequest) GetSemester ¶
func (x *GetStudentCoursesRequest) GetSemester() string
func (*GetStudentCoursesRequest) GetToken ¶
func (x *GetStudentCoursesRequest) GetToken() string
func (*GetStudentCoursesRequest) ProtoMessage ¶
func (*GetStudentCoursesRequest) ProtoMessage()
func (*GetStudentCoursesRequest) ProtoReflect ¶
func (x *GetStudentCoursesRequest) ProtoReflect() protoreflect.Message
func (*GetStudentCoursesRequest) Reset ¶
func (x *GetStudentCoursesRequest) Reset()
func (*GetStudentCoursesRequest) String ¶
func (x *GetStudentCoursesRequest) String() string
type GetStudentCoursesResponse ¶
type GetStudentCoursesResponse struct { Courses []*Course `protobuf:"bytes,1,rep,name=courses,proto3" json:"courses,omitempty"` // contains filtered or unexported fields }
Response message containing a list of courses a student is enrolled in, in a given semester.
func (*GetStudentCoursesResponse) Descriptor
deprecated
func (*GetStudentCoursesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentCoursesResponse.ProtoReflect.Descriptor instead.
func (*GetStudentCoursesResponse) GetCourses ¶
func (x *GetStudentCoursesResponse) GetCourses() []*Course
func (*GetStudentCoursesResponse) ProtoMessage ¶
func (*GetStudentCoursesResponse) ProtoMessage()
func (*GetStudentCoursesResponse) ProtoReflect ¶
func (x *GetStudentCoursesResponse) ProtoReflect() protoreflect.Message
func (*GetStudentCoursesResponse) Reset ¶
func (x *GetStudentCoursesResponse) Reset()
func (*GetStudentCoursesResponse) String ¶
func (x *GetStudentCoursesResponse) String() string
type GetStudentGradesRequest ¶
type GetStudentGradesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Semester string `protobuf:"bytes,3,opt,name=semester,proto3" json:"semester,omitempty"` CourseId string `protobuf:"bytes,4,opt,name=courseId,proto3" json:"courseId,omitempty"` // contains filtered or unexported fields }
Request message for fetching the list of grades a student has received.
func (*GetStudentGradesRequest) Descriptor
deprecated
func (*GetStudentGradesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentGradesRequest.ProtoReflect.Descriptor instead.
func (*GetStudentGradesRequest) GetCourseId ¶
func (x *GetStudentGradesRequest) GetCourseId() string
func (*GetStudentGradesRequest) GetId ¶
func (x *GetStudentGradesRequest) GetId() string
func (*GetStudentGradesRequest) GetSemester ¶
func (x *GetStudentGradesRequest) GetSemester() string
func (*GetStudentGradesRequest) GetToken ¶
func (x *GetStudentGradesRequest) GetToken() string
func (*GetStudentGradesRequest) ProtoMessage ¶
func (*GetStudentGradesRequest) ProtoMessage()
func (*GetStudentGradesRequest) ProtoReflect ¶
func (x *GetStudentGradesRequest) ProtoReflect() protoreflect.Message
func (*GetStudentGradesRequest) Reset ¶
func (x *GetStudentGradesRequest) Reset()
func (*GetStudentGradesRequest) String ¶
func (x *GetStudentGradesRequest) String() string
type GetStudentGradesResponse ¶
type GetStudentGradesResponse struct { Grades []*Grade `protobuf:"bytes,1,rep,name=grades,proto3" json:"grades,omitempty"` // contains filtered or unexported fields }
Response message containing a list of grades for the student, in a given course and semester.
func (*GetStudentGradesResponse) Descriptor
deprecated
func (*GetStudentGradesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentGradesResponse.ProtoReflect.Descriptor instead.
func (*GetStudentGradesResponse) GetGrades ¶
func (x *GetStudentGradesResponse) GetGrades() []*Grade
func (*GetStudentGradesResponse) ProtoMessage ¶
func (*GetStudentGradesResponse) ProtoMessage()
func (*GetStudentGradesResponse) ProtoReflect ¶
func (x *GetStudentGradesResponse) ProtoReflect() protoreflect.Message
func (*GetStudentGradesResponse) Reset ¶
func (x *GetStudentGradesResponse) Reset()
func (*GetStudentGradesResponse) String ¶
func (x *GetStudentGradesResponse) String() string
type GetStudentRequest ¶
type GetStudentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for getting a student.
func (*GetStudentRequest) Descriptor
deprecated
func (*GetStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentRequest.ProtoReflect.Descriptor instead.
func (*GetStudentRequest) GetId ¶
func (x *GetStudentRequest) GetId() string
func (*GetStudentRequest) GetToken ¶
func (x *GetStudentRequest) GetToken() string
func (*GetStudentRequest) ProtoMessage ¶
func (*GetStudentRequest) ProtoMessage()
func (*GetStudentRequest) ProtoReflect ¶
func (x *GetStudentRequest) ProtoReflect() protoreflect.Message
func (*GetStudentRequest) Reset ¶
func (x *GetStudentRequest) Reset()
func (*GetStudentRequest) String ¶
func (x *GetStudentRequest) String() string
type GetStudentResponse ¶
type GetStudentResponse struct { Student *Student `protobuf:"bytes,1,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Response message containing the student.
func (*GetStudentResponse) Descriptor
deprecated
func (*GetStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStudentResponse.ProtoReflect.Descriptor instead.
func (*GetStudentResponse) GetStudent ¶
func (x *GetStudentResponse) GetStudent() *Student
func (*GetStudentResponse) ProtoMessage ¶
func (*GetStudentResponse) ProtoMessage()
func (*GetStudentResponse) ProtoReflect ¶
func (x *GetStudentResponse) ProtoReflect() protoreflect.Message
func (*GetStudentResponse) Reset ¶
func (x *GetStudentResponse) Reset()
func (*GetStudentResponse) String ¶
func (x *GetStudentResponse) String() string
type Grade ¶
type Grade struct { Semester string `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"` CourseId string `protobuf:"bytes,2,opt,name=courseId,proto3" json:"courseId,omitempty"` Grade string `protobuf:"bytes,3,opt,name=grade,proto3" json:"grade,omitempty"` // contains filtered or unexported fields }
Message representing a student's grade for a particular course and semester.
func (*Grade) Descriptor
deprecated
func (*Grade) GetCourseId ¶
func (*Grade) GetSemester ¶
func (*Grade) ProtoMessage ¶
func (*Grade) ProtoMessage()
func (*Grade) ProtoReflect ¶
func (x *Grade) ProtoReflect() protoreflect.Message
type Student ¶
type Student struct { FirstName string `protobuf:"bytes,1,opt,name=firstName,proto3" json:"firstName,omitempty"` SecondName string `protobuf:"bytes,2,opt,name=secondName,proto3" json:"secondName,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Courses []*Course `protobuf:"bytes,4,rep,name=courses,proto3" json:"courses,omitempty"` // contains filtered or unexported fields }
Message representing a student with personal details.
func (*Student) Descriptor
deprecated
func (*Student) GetCourses ¶
func (*Student) GetFirstName ¶
func (*Student) GetSecondName ¶
func (*Student) ProtoMessage ¶
func (*Student) ProtoMessage()
func (*Student) ProtoReflect ¶
func (x *Student) ProtoReflect() protoreflect.Message
type StudentsServiceClient ¶
type StudentsServiceClient interface { // Get student. GetStudent(ctx context.Context, in *GetStudentRequest, opts ...grpc.CallOption) (*GetStudentResponse, error) // Create a new student. CreateStudent(ctx context.Context, in *CreateStudentRequest, opts ...grpc.CallOption) (*CreateStudentResponse, error) // Update a student. UpdateStudent(ctx context.Context, in *UpdateStudentRequest, opts ...grpc.CallOption) (*UpdateStudentResponse, error) // Get a student's courses in a given semester. GetStudentCourses(ctx context.Context, in *GetStudentCoursesRequest, opts ...grpc.CallOption) (*GetStudentCoursesResponse, error) // Get a student's grades in a given course and semester. GetStudentGrades(ctx context.Context, in *GetStudentGradesRequest, opts ...grpc.CallOption) (*GetStudentGradesResponse, error) // Delete a student. DeleteStudent(ctx context.Context, in *DeleteStudentRequest, opts ...grpc.CallOption) (*DeleteStudentResponse, error) }
StudentsServiceClient is the client API for StudentsService 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 NewStudentsServiceClient ¶
func NewStudentsServiceClient(cc grpc.ClientConnInterface) StudentsServiceClient
type StudentsServiceServer ¶
type StudentsServiceServer interface { // Get student. GetStudent(context.Context, *GetStudentRequest) (*GetStudentResponse, error) // Create a new student. CreateStudent(context.Context, *CreateStudentRequest) (*CreateStudentResponse, error) // Update a student. UpdateStudent(context.Context, *UpdateStudentRequest) (*UpdateStudentResponse, error) // Get a student's courses in a given semester. GetStudentCourses(context.Context, *GetStudentCoursesRequest) (*GetStudentCoursesResponse, error) // Get a student's grades in a given course and semester. GetStudentGrades(context.Context, *GetStudentGradesRequest) (*GetStudentGradesResponse, error) // Delete a student. DeleteStudent(context.Context, *DeleteStudentRequest) (*DeleteStudentResponse, error) // contains filtered or unexported methods }
StudentsServiceServer is the server API for StudentsService service. All implementations must embed UnimplementedStudentsServiceServer for forward compatibility.
type UnimplementedStudentsServiceServer ¶
type UnimplementedStudentsServiceServer struct{}
UnimplementedStudentsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStudentsServiceServer) CreateStudent ¶
func (UnimplementedStudentsServiceServer) CreateStudent(context.Context, *CreateStudentRequest) (*CreateStudentResponse, error)
func (UnimplementedStudentsServiceServer) DeleteStudent ¶
func (UnimplementedStudentsServiceServer) DeleteStudent(context.Context, *DeleteStudentRequest) (*DeleteStudentResponse, error)
func (UnimplementedStudentsServiceServer) GetStudent ¶
func (UnimplementedStudentsServiceServer) GetStudent(context.Context, *GetStudentRequest) (*GetStudentResponse, error)
func (UnimplementedStudentsServiceServer) GetStudentCourses ¶
func (UnimplementedStudentsServiceServer) GetStudentCourses(context.Context, *GetStudentCoursesRequest) (*GetStudentCoursesResponse, error)
func (UnimplementedStudentsServiceServer) GetStudentGrades ¶
func (UnimplementedStudentsServiceServer) GetStudentGrades(context.Context, *GetStudentGradesRequest) (*GetStudentGradesResponse, error)
func (UnimplementedStudentsServiceServer) UpdateStudent ¶
func (UnimplementedStudentsServiceServer) UpdateStudent(context.Context, *UpdateStudentRequest) (*UpdateStudentResponse, error)
type UnsafeStudentsServiceServer ¶
type UnsafeStudentsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStudentsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StudentsServiceServer will result in compilation errors.
type UpdateStudentRequest ¶
type UpdateStudentRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Student *Student `protobuf:"bytes,2,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Request message for updating an existing student.
func (*UpdateStudentRequest) Descriptor
deprecated
func (*UpdateStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStudentRequest.ProtoReflect.Descriptor instead.
func (*UpdateStudentRequest) GetStudent ¶
func (x *UpdateStudentRequest) GetStudent() *Student
func (*UpdateStudentRequest) GetToken ¶
func (x *UpdateStudentRequest) GetToken() string
func (*UpdateStudentRequest) ProtoMessage ¶
func (*UpdateStudentRequest) ProtoMessage()
func (*UpdateStudentRequest) ProtoReflect ¶
func (x *UpdateStudentRequest) ProtoReflect() protoreflect.Message
func (*UpdateStudentRequest) Reset ¶
func (x *UpdateStudentRequest) Reset()
func (*UpdateStudentRequest) String ¶
func (x *UpdateStudentRequest) String() string
type UpdateStudentResponse ¶
type UpdateStudentResponse struct { Student *Student `protobuf:"bytes,1,opt,name=student,proto3" json:"student,omitempty"` // contains filtered or unexported fields }
Response message containing the updated student details.
func (*UpdateStudentResponse) Descriptor
deprecated
func (*UpdateStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStudentResponse.ProtoReflect.Descriptor instead.
func (*UpdateStudentResponse) GetStudent ¶
func (x *UpdateStudentResponse) GetStudent() *Student
func (*UpdateStudentResponse) ProtoMessage ¶
func (*UpdateStudentResponse) ProtoMessage()
func (*UpdateStudentResponse) ProtoReflect ¶
func (x *UpdateStudentResponse) ProtoReflect() protoreflect.Message
func (*UpdateStudentResponse) Reset ¶
func (x *UpdateStudentResponse) Reset()
func (*UpdateStudentResponse) String ¶
func (x *UpdateStudentResponse) String() string