Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCourseServiceServer(s grpc.ServiceRegistrar, srv CourseServiceServer)
- type AddHomeworkRequest
- func (*AddHomeworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddHomeworkRequest) GetCourseId() string
- func (x *AddHomeworkRequest) GetDescription() string
- func (x *AddHomeworkRequest) GetDueDate() string
- func (x *AddHomeworkRequest) GetHomeworkId() string
- func (x *AddHomeworkRequest) GetTitle() string
- func (*AddHomeworkRequest) ProtoMessage()
- func (x *AddHomeworkRequest) ProtoReflect() protoreflect.Message
- func (x *AddHomeworkRequest) Reset()
- func (x *AddHomeworkRequest) String() string
- type AddHomeworkResponse
- func (*AddHomeworkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddHomeworkResponse) GetSuccess() bool
- func (*AddHomeworkResponse) ProtoMessage()
- func (x *AddHomeworkResponse) ProtoReflect() protoreflect.Message
- func (x *AddHomeworkResponse) Reset()
- func (x *AddHomeworkResponse) String() string
- type AddStaffRequest
- func (*AddStaffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddStaffRequest) GetCourseId() string
- func (x *AddStaffRequest) GetStaffId() string
- func (*AddStaffRequest) ProtoMessage()
- func (x *AddStaffRequest) ProtoReflect() protoreflect.Message
- func (x *AddStaffRequest) Reset()
- func (x *AddStaffRequest) String() string
- type AddStaffResponse
- type AddStudentRequest
- func (*AddStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddStudentRequest) GetCourseId() string
- func (x *AddStudentRequest) GetStudentId() string
- func (*AddStudentRequest) ProtoMessage()
- func (x *AddStudentRequest) ProtoReflect() protoreflect.Message
- func (x *AddStudentRequest) Reset()
- func (x *AddStudentRequest) String() string
- type AddStudentResponse
- func (*AddStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddStudentResponse) GetSuccess() bool
- func (*AddStudentResponse) ProtoMessage()
- func (x *AddStudentResponse) ProtoReflect() protoreflect.Message
- func (x *AddStudentResponse) Reset()
- func (x *AddStudentResponse) String() string
- type CourseServiceClient
- type CourseServiceServer
- type CreateCourseRequest
- func (*CreateCourseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCourseRequest) GetDescription() string
- func (x *CreateCourseRequest) GetName() string
- func (x *CreateCourseRequest) GetSemester() string
- func (*CreateCourseRequest) ProtoMessage()
- func (x *CreateCourseRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCourseRequest) Reset()
- func (x *CreateCourseRequest) String() string
- type CreateCourseResponse
- func (*CreateCourseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCourseResponse) GetCourseId() string
- func (*CreateCourseResponse) ProtoMessage()
- func (x *CreateCourseResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCourseResponse) Reset()
- func (x *CreateCourseResponse) String() string
- type DeleteCourseRequest
- func (*DeleteCourseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCourseRequest) GetCourseId() string
- func (*DeleteCourseRequest) ProtoMessage()
- func (x *DeleteCourseRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCourseRequest) Reset()
- func (x *DeleteCourseRequest) String() string
- type DeleteCourseResponse
- func (*DeleteCourseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCourseResponse) GetSuccess() bool
- func (*DeleteCourseResponse) ProtoMessage()
- func (x *DeleteCourseResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteCourseResponse) Reset()
- func (x *DeleteCourseResponse) String() string
- type GetCourseRequest
- type GetCourseResponse
- func (*GetCourseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCourseResponse) GetCourseId() string
- func (x *GetCourseResponse) GetDescription() string
- func (x *GetCourseResponse) GetName() string
- func (x *GetCourseResponse) GetSemester() string
- func (x *GetCourseResponse) GetStaffIds() []string
- func (x *GetCourseResponse) GetStudentIds() []string
- func (*GetCourseResponse) ProtoMessage()
- func (x *GetCourseResponse) ProtoReflect() protoreflect.Message
- func (x *GetCourseResponse) Reset()
- func (x *GetCourseResponse) String() string
- type ListStaffRequest
- type ListStaffResponse
- func (*ListStaffResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListStaffResponse) GetStaffIds() []string
- func (*ListStaffResponse) ProtoMessage()
- func (x *ListStaffResponse) ProtoReflect() protoreflect.Message
- func (x *ListStaffResponse) Reset()
- func (x *ListStaffResponse) String() string
- type ListStudentsRequest
- func (*ListStudentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListStudentsRequest) GetCourseId() string
- func (*ListStudentsRequest) ProtoMessage()
- func (x *ListStudentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListStudentsRequest) Reset()
- func (x *ListStudentsRequest) String() string
- type ListStudentsResponse
- func (*ListStudentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListStudentsResponse) GetStudentIds() []string
- func (*ListStudentsResponse) ProtoMessage()
- func (x *ListStudentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListStudentsResponse) Reset()
- func (x *ListStudentsResponse) String() string
- type RemoveHomeworkRequest
- func (*RemoveHomeworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveHomeworkRequest) GetCourseId() string
- func (x *RemoveHomeworkRequest) GetHomeworkId() string
- func (*RemoveHomeworkRequest) ProtoMessage()
- func (x *RemoveHomeworkRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveHomeworkRequest) Reset()
- func (x *RemoveHomeworkRequest) String() string
- type RemoveHomeworkResponse
- func (*RemoveHomeworkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveHomeworkResponse) GetSuccess() bool
- func (*RemoveHomeworkResponse) ProtoMessage()
- func (x *RemoveHomeworkResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveHomeworkResponse) Reset()
- func (x *RemoveHomeworkResponse) String() string
- type RemoveStaffRequest
- func (*RemoveStaffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveStaffRequest) GetCourseId() string
- func (x *RemoveStaffRequest) GetStaffId() string
- func (*RemoveStaffRequest) ProtoMessage()
- func (x *RemoveStaffRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveStaffRequest) Reset()
- func (x *RemoveStaffRequest) String() string
- type RemoveStaffResponse
- func (*RemoveStaffResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveStaffResponse) GetSuccess() bool
- func (*RemoveStaffResponse) ProtoMessage()
- func (x *RemoveStaffResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveStaffResponse) Reset()
- func (x *RemoveStaffResponse) String() string
- type RemoveStudentRequest
- func (*RemoveStudentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveStudentRequest) GetCourseId() string
- func (x *RemoveStudentRequest) GetStudentId() string
- func (*RemoveStudentRequest) ProtoMessage()
- func (x *RemoveStudentRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveStudentRequest) Reset()
- func (x *RemoveStudentRequest) String() string
- type RemoveStudentResponse
- func (*RemoveStudentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveStudentResponse) GetSuccess() bool
- func (*RemoveStudentResponse) ProtoMessage()
- func (x *RemoveStudentResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveStudentResponse) Reset()
- func (x *RemoveStudentResponse) String() string
- type UnimplementedCourseServiceServer
- func (UnimplementedCourseServiceServer) AddHomework(context.Context, *AddHomeworkRequest) (*AddHomeworkResponse, error)
- func (UnimplementedCourseServiceServer) AddStaffToCourse(context.Context, *AddStaffRequest) (*AddStaffResponse, error)
- func (UnimplementedCourseServiceServer) AddStudentToCourse(context.Context, *AddStudentRequest) (*AddStudentResponse, error)
- func (UnimplementedCourseServiceServer) CreateCourse(context.Context, *CreateCourseRequest) (*CreateCourseResponse, error)
- func (UnimplementedCourseServiceServer) DeleteCourse(context.Context, *DeleteCourseRequest) (*DeleteCourseResponse, error)
- func (UnimplementedCourseServiceServer) GetCourse(context.Context, *GetCourseRequest) (*GetCourseResponse, error)
- func (UnimplementedCourseServiceServer) ListStaff(context.Context, *ListStaffRequest) (*ListStaffResponse, error)
- func (UnimplementedCourseServiceServer) ListStudents(context.Context, *ListStudentsRequest) (*ListStudentsResponse, error)
- func (UnimplementedCourseServiceServer) RemoveHomework(context.Context, *RemoveHomeworkRequest) (*RemoveHomeworkResponse, error)
- func (UnimplementedCourseServiceServer) RemoveStaffFromCourse(context.Context, *RemoveStaffRequest) (*RemoveStaffResponse, error)
- func (UnimplementedCourseServiceServer) RemoveStudentFromCourse(context.Context, *RemoveStudentRequest) (*RemoveStudentResponse, error)
- func (UnimplementedCourseServiceServer) UpdateCourse(context.Context, *UpdateCourseRequest) (*UpdateCourseResponse, error)
- type UnsafeCourseServiceServer
- type UpdateCourseRequest
- func (*UpdateCourseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCourseRequest) GetCourseId() string
- func (x *UpdateCourseRequest) GetDescription() string
- func (x *UpdateCourseRequest) GetName() string
- func (x *UpdateCourseRequest) GetSemester() string
- func (*UpdateCourseRequest) ProtoMessage()
- func (x *UpdateCourseRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCourseRequest) Reset()
- func (x *UpdateCourseRequest) String() string
- type UpdateCourseResponse
- func (*UpdateCourseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCourseResponse) GetSuccess() bool
- func (*UpdateCourseResponse) ProtoMessage()
- func (x *UpdateCourseResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCourseResponse) Reset()
- func (x *UpdateCourseResponse) String() string
Constants ¶
const ( CourseService_GetCourse_FullMethodName = "/course.CourseService/GetCourse" CourseService_CreateCourse_FullMethodName = "/course.CourseService/CreateCourse" CourseService_UpdateCourse_FullMethodName = "/course.CourseService/UpdateCourse" CourseService_AddStudentToCourse_FullMethodName = "/course.CourseService/AddStudentToCourse" CourseService_RemoveStudentFromCourse_FullMethodName = "/course.CourseService/RemoveStudentFromCourse" CourseService_AddStaffToCourse_FullMethodName = "/course.CourseService/AddStaffToCourse" CourseService_RemoveStaffFromCourse_FullMethodName = "/course.CourseService/RemoveStaffFromCourse" CourseService_DeleteCourse_FullMethodName = "/course.CourseService/DeleteCourse" CourseService_ListStudents_FullMethodName = "/course.CourseService/ListStudents" CourseService_ListStaff_FullMethodName = "/course.CourseService/ListStaff" CourseService_AddHomework_FullMethodName = "/course.CourseService/AddHomework" CourseService_RemoveHomework_FullMethodName = "/course.CourseService/RemoveHomework" )
Variables ¶
var CourseService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "course.CourseService", HandlerType: (*CourseServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCourse", Handler: _CourseService_GetCourse_Handler, }, { MethodName: "CreateCourse", Handler: _CourseService_CreateCourse_Handler, }, { MethodName: "UpdateCourse", Handler: _CourseService_UpdateCourse_Handler, }, { MethodName: "AddStudentToCourse", Handler: _CourseService_AddStudentToCourse_Handler, }, { MethodName: "RemoveStudentFromCourse", Handler: _CourseService_RemoveStudentFromCourse_Handler, }, { MethodName: "AddStaffToCourse", Handler: _CourseService_AddStaffToCourse_Handler, }, { MethodName: "RemoveStaffFromCourse", Handler: _CourseService_RemoveStaffFromCourse_Handler, }, { MethodName: "DeleteCourse", Handler: _CourseService_DeleteCourse_Handler, }, { MethodName: "ListStudents", Handler: _CourseService_ListStudents_Handler, }, { MethodName: "ListStaff", Handler: _CourseService_ListStaff_Handler, }, { MethodName: "AddHomework", Handler: _CourseService_AddHomework_Handler, }, { MethodName: "RemoveHomework", Handler: _CourseService_RemoveHomework_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "course.proto", }
CourseService_ServiceDesc is the grpc.ServiceDesc for CourseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_course_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCourseServiceServer ¶
func RegisterCourseServiceServer(s grpc.ServiceRegistrar, srv CourseServiceServer)
Types ¶
type AddHomeworkRequest ¶
type AddHomeworkRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` // The ID of the course to which the homework is added. HomeworkId string `protobuf:"bytes,2,opt,name=homework_id,json=homeworkId,proto3" json:"homework_id,omitempty"` // Unique ID for the homework. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // The title of the homework. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // A brief description of the homework. DueDate string `protobuf:"bytes,5,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"` // The due date for the homework in ISO 8601 format. // contains filtered or unexported fields }
func (*AddHomeworkRequest) Descriptor
deprecated
func (*AddHomeworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddHomeworkRequest.ProtoReflect.Descriptor instead.
func (*AddHomeworkRequest) GetCourseId ¶
func (x *AddHomeworkRequest) GetCourseId() string
func (*AddHomeworkRequest) GetDescription ¶
func (x *AddHomeworkRequest) GetDescription() string
func (*AddHomeworkRequest) GetDueDate ¶
func (x *AddHomeworkRequest) GetDueDate() string
func (*AddHomeworkRequest) GetHomeworkId ¶
func (x *AddHomeworkRequest) GetHomeworkId() string
func (*AddHomeworkRequest) GetTitle ¶
func (x *AddHomeworkRequest) GetTitle() string
func (*AddHomeworkRequest) ProtoMessage ¶
func (*AddHomeworkRequest) ProtoMessage()
func (*AddHomeworkRequest) ProtoReflect ¶
func (x *AddHomeworkRequest) ProtoReflect() protoreflect.Message
func (*AddHomeworkRequest) Reset ¶
func (x *AddHomeworkRequest) Reset()
func (*AddHomeworkRequest) String ¶
func (x *AddHomeworkRequest) String() string
type AddHomeworkResponse ¶
type AddHomeworkResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the homework was successfully added. // contains filtered or unexported fields }
func (*AddHomeworkResponse) Descriptor
deprecated
func (*AddHomeworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddHomeworkResponse.ProtoReflect.Descriptor instead.
func (*AddHomeworkResponse) GetSuccess ¶
func (x *AddHomeworkResponse) GetSuccess() bool
func (*AddHomeworkResponse) ProtoMessage ¶
func (*AddHomeworkResponse) ProtoMessage()
func (*AddHomeworkResponse) ProtoReflect ¶
func (x *AddHomeworkResponse) ProtoReflect() protoreflect.Message
func (*AddHomeworkResponse) Reset ¶
func (x *AddHomeworkResponse) Reset()
func (*AddHomeworkResponse) String ¶
func (x *AddHomeworkResponse) String() string
type AddStaffRequest ¶
type AddStaffRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` StaffId string `protobuf:"bytes,2,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` // contains filtered or unexported fields }
func (*AddStaffRequest) Descriptor
deprecated
func (*AddStaffRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddStaffRequest.ProtoReflect.Descriptor instead.
func (*AddStaffRequest) GetCourseId ¶
func (x *AddStaffRequest) GetCourseId() string
func (*AddStaffRequest) GetStaffId ¶
func (x *AddStaffRequest) GetStaffId() string
func (*AddStaffRequest) ProtoMessage ¶
func (*AddStaffRequest) ProtoMessage()
func (*AddStaffRequest) ProtoReflect ¶
func (x *AddStaffRequest) ProtoReflect() protoreflect.Message
func (*AddStaffRequest) Reset ¶
func (x *AddStaffRequest) Reset()
func (*AddStaffRequest) String ¶
func (x *AddStaffRequest) String() string
type AddStaffResponse ¶
type AddStaffResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*AddStaffResponse) Descriptor
deprecated
func (*AddStaffResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddStaffResponse.ProtoReflect.Descriptor instead.
func (*AddStaffResponse) GetSuccess ¶
func (x *AddStaffResponse) GetSuccess() bool
func (*AddStaffResponse) ProtoMessage ¶
func (*AddStaffResponse) ProtoMessage()
func (*AddStaffResponse) ProtoReflect ¶
func (x *AddStaffResponse) ProtoReflect() protoreflect.Message
func (*AddStaffResponse) Reset ¶
func (x *AddStaffResponse) Reset()
func (*AddStaffResponse) String ¶
func (x *AddStaffResponse) String() string
type AddStudentRequest ¶
type AddStudentRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` StudentId string `protobuf:"bytes,2,opt,name=student_id,json=studentId,proto3" json:"student_id,omitempty"` // contains filtered or unexported fields }
func (*AddStudentRequest) Descriptor
deprecated
func (*AddStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddStudentRequest.ProtoReflect.Descriptor instead.
func (*AddStudentRequest) GetCourseId ¶
func (x *AddStudentRequest) GetCourseId() string
func (*AddStudentRequest) GetStudentId ¶
func (x *AddStudentRequest) GetStudentId() string
func (*AddStudentRequest) ProtoMessage ¶
func (*AddStudentRequest) ProtoMessage()
func (*AddStudentRequest) ProtoReflect ¶
func (x *AddStudentRequest) ProtoReflect() protoreflect.Message
func (*AddStudentRequest) Reset ¶
func (x *AddStudentRequest) Reset()
func (*AddStudentRequest) String ¶
func (x *AddStudentRequest) String() string
type AddStudentResponse ¶
type AddStudentResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*AddStudentResponse) Descriptor
deprecated
func (*AddStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddStudentResponse.ProtoReflect.Descriptor instead.
func (*AddStudentResponse) GetSuccess ¶
func (x *AddStudentResponse) GetSuccess() bool
func (*AddStudentResponse) ProtoMessage ¶
func (*AddStudentResponse) ProtoMessage()
func (*AddStudentResponse) ProtoReflect ¶
func (x *AddStudentResponse) ProtoReflect() protoreflect.Message
func (*AddStudentResponse) Reset ¶
func (x *AddStudentResponse) Reset()
func (*AddStudentResponse) String ¶
func (x *AddStudentResponse) String() string
type CourseServiceClient ¶
type CourseServiceClient interface { GetCourse(ctx context.Context, in *GetCourseRequest, opts ...grpc.CallOption) (*GetCourseResponse, error) CreateCourse(ctx context.Context, in *CreateCourseRequest, opts ...grpc.CallOption) (*CreateCourseResponse, error) UpdateCourse(ctx context.Context, in *UpdateCourseRequest, opts ...grpc.CallOption) (*UpdateCourseResponse, error) AddStudentToCourse(ctx context.Context, in *AddStudentRequest, opts ...grpc.CallOption) (*AddStudentResponse, error) RemoveStudentFromCourse(ctx context.Context, in *RemoveStudentRequest, opts ...grpc.CallOption) (*RemoveStudentResponse, error) AddStaffToCourse(ctx context.Context, in *AddStaffRequest, opts ...grpc.CallOption) (*AddStaffResponse, error) RemoveStaffFromCourse(ctx context.Context, in *RemoveStaffRequest, opts ...grpc.CallOption) (*RemoveStaffResponse, error) DeleteCourse(ctx context.Context, in *DeleteCourseRequest, opts ...grpc.CallOption) (*DeleteCourseResponse, error) ListStudents(ctx context.Context, in *ListStudentsRequest, opts ...grpc.CallOption) (*ListStudentsResponse, error) ListStaff(ctx context.Context, in *ListStaffRequest, opts ...grpc.CallOption) (*ListStaffResponse, error) AddHomework(ctx context.Context, in *AddHomeworkRequest, opts ...grpc.CallOption) (*AddHomeworkResponse, error) RemoveHomework(ctx context.Context, in *RemoveHomeworkRequest, opts ...grpc.CallOption) (*RemoveHomeworkResponse, error) }
CourseServiceClient is the client API for CourseService 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 NewCourseServiceClient ¶
func NewCourseServiceClient(cc grpc.ClientConnInterface) CourseServiceClient
type CourseServiceServer ¶
type CourseServiceServer interface { GetCourse(context.Context, *GetCourseRequest) (*GetCourseResponse, error) CreateCourse(context.Context, *CreateCourseRequest) (*CreateCourseResponse, error) UpdateCourse(context.Context, *UpdateCourseRequest) (*UpdateCourseResponse, error) AddStudentToCourse(context.Context, *AddStudentRequest) (*AddStudentResponse, error) RemoveStudentFromCourse(context.Context, *RemoveStudentRequest) (*RemoveStudentResponse, error) AddStaffToCourse(context.Context, *AddStaffRequest) (*AddStaffResponse, error) RemoveStaffFromCourse(context.Context, *RemoveStaffRequest) (*RemoveStaffResponse, error) DeleteCourse(context.Context, *DeleteCourseRequest) (*DeleteCourseResponse, error) ListStudents(context.Context, *ListStudentsRequest) (*ListStudentsResponse, error) ListStaff(context.Context, *ListStaffRequest) (*ListStaffResponse, error) AddHomework(context.Context, *AddHomeworkRequest) (*AddHomeworkResponse, error) RemoveHomework(context.Context, *RemoveHomeworkRequest) (*RemoveHomeworkResponse, error) // contains filtered or unexported methods }
CourseServiceServer is the server API for CourseService service. All implementations must embed UnimplementedCourseServiceServer for forward compatibility.
type CreateCourseRequest ¶
type CreateCourseRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Semester string `protobuf:"bytes,3,opt,name=semester,proto3" json:"semester,omitempty"` // contains filtered or unexported fields }
func (*CreateCourseRequest) Descriptor
deprecated
func (*CreateCourseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCourseRequest.ProtoReflect.Descriptor instead.
func (*CreateCourseRequest) GetDescription ¶
func (x *CreateCourseRequest) GetDescription() string
func (*CreateCourseRequest) GetName ¶
func (x *CreateCourseRequest) GetName() string
func (*CreateCourseRequest) GetSemester ¶
func (x *CreateCourseRequest) GetSemester() string
func (*CreateCourseRequest) ProtoMessage ¶
func (*CreateCourseRequest) ProtoMessage()
func (*CreateCourseRequest) ProtoReflect ¶
func (x *CreateCourseRequest) ProtoReflect() protoreflect.Message
func (*CreateCourseRequest) Reset ¶
func (x *CreateCourseRequest) Reset()
func (*CreateCourseRequest) String ¶
func (x *CreateCourseRequest) String() string
type CreateCourseResponse ¶
type CreateCourseResponse struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` //to ask: should the id be in the response or request? // contains filtered or unexported fields }
func (*CreateCourseResponse) Descriptor
deprecated
func (*CreateCourseResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCourseResponse.ProtoReflect.Descriptor instead.
func (*CreateCourseResponse) GetCourseId ¶
func (x *CreateCourseResponse) GetCourseId() string
func (*CreateCourseResponse) ProtoMessage ¶
func (*CreateCourseResponse) ProtoMessage()
func (*CreateCourseResponse) ProtoReflect ¶
func (x *CreateCourseResponse) ProtoReflect() protoreflect.Message
func (*CreateCourseResponse) Reset ¶
func (x *CreateCourseResponse) Reset()
func (*CreateCourseResponse) String ¶
func (x *CreateCourseResponse) String() string
type DeleteCourseRequest ¶
type DeleteCourseRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCourseRequest) Descriptor
deprecated
func (*DeleteCourseRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCourseRequest.ProtoReflect.Descriptor instead.
func (*DeleteCourseRequest) GetCourseId ¶
func (x *DeleteCourseRequest) GetCourseId() string
func (*DeleteCourseRequest) ProtoMessage ¶
func (*DeleteCourseRequest) ProtoMessage()
func (*DeleteCourseRequest) ProtoReflect ¶
func (x *DeleteCourseRequest) ProtoReflect() protoreflect.Message
func (*DeleteCourseRequest) Reset ¶
func (x *DeleteCourseRequest) Reset()
func (*DeleteCourseRequest) String ¶
func (x *DeleteCourseRequest) String() string
type DeleteCourseResponse ¶
type DeleteCourseResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DeleteCourseResponse) Descriptor
deprecated
func (*DeleteCourseResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCourseResponse.ProtoReflect.Descriptor instead.
func (*DeleteCourseResponse) GetSuccess ¶
func (x *DeleteCourseResponse) GetSuccess() bool
func (*DeleteCourseResponse) ProtoMessage ¶
func (*DeleteCourseResponse) ProtoMessage()
func (*DeleteCourseResponse) ProtoReflect ¶
func (x *DeleteCourseResponse) ProtoReflect() protoreflect.Message
func (*DeleteCourseResponse) Reset ¶
func (x *DeleteCourseResponse) Reset()
func (*DeleteCourseResponse) String ¶
func (x *DeleteCourseResponse) String() string
type GetCourseRequest ¶
type GetCourseRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` //unique ID of the course // contains filtered or unexported fields }
func (*GetCourseRequest) Descriptor
deprecated
func (*GetCourseRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCourseRequest.ProtoReflect.Descriptor instead.
func (*GetCourseRequest) GetCourseId ¶
func (x *GetCourseRequest) GetCourseId() string
func (*GetCourseRequest) ProtoMessage ¶
func (*GetCourseRequest) ProtoMessage()
func (*GetCourseRequest) ProtoReflect ¶
func (x *GetCourseRequest) ProtoReflect() protoreflect.Message
func (*GetCourseRequest) Reset ¶
func (x *GetCourseRequest) Reset()
func (*GetCourseRequest) String ¶
func (x *GetCourseRequest) String() string
type GetCourseResponse ¶
type GetCourseResponse struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` //A brief description of the course, explaining what it covers. Semester string `protobuf:"bytes,4,opt,name=semester,proto3" json:"semester,omitempty"` //Indicates the semester when the course is offered. StaffIds []string `protobuf:"bytes,5,rep,name=staff_ids,json=staffIds,proto3" json:"staff_ids,omitempty"` //A list of IDs representing the staff of this course. StudentIds []string `protobuf:"bytes,6,rep,name=student_ids,json=studentIds,proto3" json:"student_ids,omitempty"` //A list of IDs representing the enrolled students in the course. // contains filtered or unexported fields }
func (*GetCourseResponse) Descriptor
deprecated
func (*GetCourseResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCourseResponse.ProtoReflect.Descriptor instead.
func (*GetCourseResponse) GetCourseId ¶
func (x *GetCourseResponse) GetCourseId() string
func (*GetCourseResponse) GetDescription ¶
func (x *GetCourseResponse) GetDescription() string
func (*GetCourseResponse) GetName ¶
func (x *GetCourseResponse) GetName() string
func (*GetCourseResponse) GetSemester ¶
func (x *GetCourseResponse) GetSemester() string
func (*GetCourseResponse) GetStaffIds ¶
func (x *GetCourseResponse) GetStaffIds() []string
func (*GetCourseResponse) GetStudentIds ¶
func (x *GetCourseResponse) GetStudentIds() []string
func (*GetCourseResponse) ProtoMessage ¶
func (*GetCourseResponse) ProtoMessage()
func (*GetCourseResponse) ProtoReflect ¶
func (x *GetCourseResponse) ProtoReflect() protoreflect.Message
func (*GetCourseResponse) Reset ¶
func (x *GetCourseResponse) Reset()
func (*GetCourseResponse) String ¶
func (x *GetCourseResponse) String() string
type ListStaffRequest ¶
type ListStaffRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` // contains filtered or unexported fields }
func (*ListStaffRequest) Descriptor
deprecated
func (*ListStaffRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListStaffRequest.ProtoReflect.Descriptor instead.
func (*ListStaffRequest) GetCourseId ¶
func (x *ListStaffRequest) GetCourseId() string
func (*ListStaffRequest) ProtoMessage ¶
func (*ListStaffRequest) ProtoMessage()
func (*ListStaffRequest) ProtoReflect ¶
func (x *ListStaffRequest) ProtoReflect() protoreflect.Message
func (*ListStaffRequest) Reset ¶
func (x *ListStaffRequest) Reset()
func (*ListStaffRequest) String ¶
func (x *ListStaffRequest) String() string
type ListStaffResponse ¶
type ListStaffResponse struct { StaffIds []string `protobuf:"bytes,1,rep,name=staff_ids,json=staffIds,proto3" json:"staff_ids,omitempty"` // contains filtered or unexported fields }
func (*ListStaffResponse) Descriptor
deprecated
func (*ListStaffResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListStaffResponse.ProtoReflect.Descriptor instead.
func (*ListStaffResponse) GetStaffIds ¶
func (x *ListStaffResponse) GetStaffIds() []string
func (*ListStaffResponse) ProtoMessage ¶
func (*ListStaffResponse) ProtoMessage()
func (*ListStaffResponse) ProtoReflect ¶
func (x *ListStaffResponse) ProtoReflect() protoreflect.Message
func (*ListStaffResponse) Reset ¶
func (x *ListStaffResponse) Reset()
func (*ListStaffResponse) String ¶
func (x *ListStaffResponse) String() string
type ListStudentsRequest ¶
type ListStudentsRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` // contains filtered or unexported fields }
func (*ListStudentsRequest) Descriptor
deprecated
func (*ListStudentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListStudentsRequest.ProtoReflect.Descriptor instead.
func (*ListStudentsRequest) GetCourseId ¶
func (x *ListStudentsRequest) GetCourseId() string
func (*ListStudentsRequest) ProtoMessage ¶
func (*ListStudentsRequest) ProtoMessage()
func (*ListStudentsRequest) ProtoReflect ¶
func (x *ListStudentsRequest) ProtoReflect() protoreflect.Message
func (*ListStudentsRequest) Reset ¶
func (x *ListStudentsRequest) Reset()
func (*ListStudentsRequest) String ¶
func (x *ListStudentsRequest) String() string
type ListStudentsResponse ¶
type ListStudentsResponse struct { StudentIds []string `protobuf:"bytes,1,rep,name=student_ids,json=studentIds,proto3" json:"student_ids,omitempty"` // contains filtered or unexported fields }
func (*ListStudentsResponse) Descriptor
deprecated
func (*ListStudentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListStudentsResponse.ProtoReflect.Descriptor instead.
func (*ListStudentsResponse) GetStudentIds ¶
func (x *ListStudentsResponse) GetStudentIds() []string
func (*ListStudentsResponse) ProtoMessage ¶
func (*ListStudentsResponse) ProtoMessage()
func (*ListStudentsResponse) ProtoReflect ¶
func (x *ListStudentsResponse) ProtoReflect() protoreflect.Message
func (*ListStudentsResponse) Reset ¶
func (x *ListStudentsResponse) Reset()
func (*ListStudentsResponse) String ¶
func (x *ListStudentsResponse) String() string
type RemoveHomeworkRequest ¶
type RemoveHomeworkRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` // The ID of the course. HomeworkId string `protobuf:"bytes,2,opt,name=homework_id,json=homeworkId,proto3" json:"homework_id,omitempty"` // The ID of the homework to be removed. // contains filtered or unexported fields }
func (*RemoveHomeworkRequest) Descriptor
deprecated
func (*RemoveHomeworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveHomeworkRequest.ProtoReflect.Descriptor instead.
func (*RemoveHomeworkRequest) GetCourseId ¶
func (x *RemoveHomeworkRequest) GetCourseId() string
func (*RemoveHomeworkRequest) GetHomeworkId ¶
func (x *RemoveHomeworkRequest) GetHomeworkId() string
func (*RemoveHomeworkRequest) ProtoMessage ¶
func (*RemoveHomeworkRequest) ProtoMessage()
func (*RemoveHomeworkRequest) ProtoReflect ¶
func (x *RemoveHomeworkRequest) ProtoReflect() protoreflect.Message
func (*RemoveHomeworkRequest) Reset ¶
func (x *RemoveHomeworkRequest) Reset()
func (*RemoveHomeworkRequest) String ¶
func (x *RemoveHomeworkRequest) String() string
type RemoveHomeworkResponse ¶
type RemoveHomeworkResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the homework was successfully removed. // contains filtered or unexported fields }
func (*RemoveHomeworkResponse) Descriptor
deprecated
func (*RemoveHomeworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveHomeworkResponse.ProtoReflect.Descriptor instead.
func (*RemoveHomeworkResponse) GetSuccess ¶
func (x *RemoveHomeworkResponse) GetSuccess() bool
func (*RemoveHomeworkResponse) ProtoMessage ¶
func (*RemoveHomeworkResponse) ProtoMessage()
func (*RemoveHomeworkResponse) ProtoReflect ¶
func (x *RemoveHomeworkResponse) ProtoReflect() protoreflect.Message
func (*RemoveHomeworkResponse) Reset ¶
func (x *RemoveHomeworkResponse) Reset()
func (*RemoveHomeworkResponse) String ¶
func (x *RemoveHomeworkResponse) String() string
type RemoveStaffRequest ¶
type RemoveStaffRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` StaffId string `protobuf:"bytes,2,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveStaffRequest) Descriptor
deprecated
func (*RemoveStaffRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveStaffRequest.ProtoReflect.Descriptor instead.
func (*RemoveStaffRequest) GetCourseId ¶
func (x *RemoveStaffRequest) GetCourseId() string
func (*RemoveStaffRequest) GetStaffId ¶
func (x *RemoveStaffRequest) GetStaffId() string
func (*RemoveStaffRequest) ProtoMessage ¶
func (*RemoveStaffRequest) ProtoMessage()
func (*RemoveStaffRequest) ProtoReflect ¶
func (x *RemoveStaffRequest) ProtoReflect() protoreflect.Message
func (*RemoveStaffRequest) Reset ¶
func (x *RemoveStaffRequest) Reset()
func (*RemoveStaffRequest) String ¶
func (x *RemoveStaffRequest) String() string
type RemoveStaffResponse ¶
type RemoveStaffResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*RemoveStaffResponse) Descriptor
deprecated
func (*RemoveStaffResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveStaffResponse.ProtoReflect.Descriptor instead.
func (*RemoveStaffResponse) GetSuccess ¶
func (x *RemoveStaffResponse) GetSuccess() bool
func (*RemoveStaffResponse) ProtoMessage ¶
func (*RemoveStaffResponse) ProtoMessage()
func (*RemoveStaffResponse) ProtoReflect ¶
func (x *RemoveStaffResponse) ProtoReflect() protoreflect.Message
func (*RemoveStaffResponse) Reset ¶
func (x *RemoveStaffResponse) Reset()
func (*RemoveStaffResponse) String ¶
func (x *RemoveStaffResponse) String() string
type RemoveStudentRequest ¶
type RemoveStudentRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` StudentId string `protobuf:"bytes,2,opt,name=student_id,json=studentId,proto3" json:"student_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveStudentRequest) Descriptor
deprecated
func (*RemoveStudentRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveStudentRequest.ProtoReflect.Descriptor instead.
func (*RemoveStudentRequest) GetCourseId ¶
func (x *RemoveStudentRequest) GetCourseId() string
func (*RemoveStudentRequest) GetStudentId ¶
func (x *RemoveStudentRequest) GetStudentId() string
func (*RemoveStudentRequest) ProtoMessage ¶
func (*RemoveStudentRequest) ProtoMessage()
func (*RemoveStudentRequest) ProtoReflect ¶
func (x *RemoveStudentRequest) ProtoReflect() protoreflect.Message
func (*RemoveStudentRequest) Reset ¶
func (x *RemoveStudentRequest) Reset()
func (*RemoveStudentRequest) String ¶
func (x *RemoveStudentRequest) String() string
type RemoveStudentResponse ¶
type RemoveStudentResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*RemoveStudentResponse) Descriptor
deprecated
func (*RemoveStudentResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveStudentResponse.ProtoReflect.Descriptor instead.
func (*RemoveStudentResponse) GetSuccess ¶
func (x *RemoveStudentResponse) GetSuccess() bool
func (*RemoveStudentResponse) ProtoMessage ¶
func (*RemoveStudentResponse) ProtoMessage()
func (*RemoveStudentResponse) ProtoReflect ¶
func (x *RemoveStudentResponse) ProtoReflect() protoreflect.Message
func (*RemoveStudentResponse) Reset ¶
func (x *RemoveStudentResponse) Reset()
func (*RemoveStudentResponse) String ¶
func (x *RemoveStudentResponse) String() string
type UnimplementedCourseServiceServer ¶
type UnimplementedCourseServiceServer struct{}
UnimplementedCourseServiceServer 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 (UnimplementedCourseServiceServer) AddHomework ¶
func (UnimplementedCourseServiceServer) AddHomework(context.Context, *AddHomeworkRequest) (*AddHomeworkResponse, error)
func (UnimplementedCourseServiceServer) AddStaffToCourse ¶
func (UnimplementedCourseServiceServer) AddStaffToCourse(context.Context, *AddStaffRequest) (*AddStaffResponse, error)
func (UnimplementedCourseServiceServer) AddStudentToCourse ¶
func (UnimplementedCourseServiceServer) AddStudentToCourse(context.Context, *AddStudentRequest) (*AddStudentResponse, error)
func (UnimplementedCourseServiceServer) CreateCourse ¶
func (UnimplementedCourseServiceServer) CreateCourse(context.Context, *CreateCourseRequest) (*CreateCourseResponse, error)
func (UnimplementedCourseServiceServer) DeleteCourse ¶
func (UnimplementedCourseServiceServer) DeleteCourse(context.Context, *DeleteCourseRequest) (*DeleteCourseResponse, error)
func (UnimplementedCourseServiceServer) GetCourse ¶
func (UnimplementedCourseServiceServer) GetCourse(context.Context, *GetCourseRequest) (*GetCourseResponse, error)
func (UnimplementedCourseServiceServer) ListStaff ¶
func (UnimplementedCourseServiceServer) ListStaff(context.Context, *ListStaffRequest) (*ListStaffResponse, error)
func (UnimplementedCourseServiceServer) ListStudents ¶
func (UnimplementedCourseServiceServer) ListStudents(context.Context, *ListStudentsRequest) (*ListStudentsResponse, error)
func (UnimplementedCourseServiceServer) RemoveHomework ¶
func (UnimplementedCourseServiceServer) RemoveHomework(context.Context, *RemoveHomeworkRequest) (*RemoveHomeworkResponse, error)
func (UnimplementedCourseServiceServer) RemoveStaffFromCourse ¶
func (UnimplementedCourseServiceServer) RemoveStaffFromCourse(context.Context, *RemoveStaffRequest) (*RemoveStaffResponse, error)
func (UnimplementedCourseServiceServer) RemoveStudentFromCourse ¶
func (UnimplementedCourseServiceServer) RemoveStudentFromCourse(context.Context, *RemoveStudentRequest) (*RemoveStudentResponse, error)
func (UnimplementedCourseServiceServer) UpdateCourse ¶
func (UnimplementedCourseServiceServer) UpdateCourse(context.Context, *UpdateCourseRequest) (*UpdateCourseResponse, error)
type UnsafeCourseServiceServer ¶
type UnsafeCourseServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCourseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CourseServiceServer will result in compilation errors.
type UpdateCourseRequest ¶
type UpdateCourseRequest struct { CourseId string `protobuf:"bytes,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` //Identifies the course to be updated Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //new name Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ////new description Semester string `protobuf:"bytes,4,opt,name=semester,proto3" json:"semester,omitempty"` //modify semester value // contains filtered or unexported fields }
func (*UpdateCourseRequest) Descriptor
deprecated
func (*UpdateCourseRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCourseRequest.ProtoReflect.Descriptor instead.
func (*UpdateCourseRequest) GetCourseId ¶
func (x *UpdateCourseRequest) GetCourseId() string
func (*UpdateCourseRequest) GetDescription ¶
func (x *UpdateCourseRequest) GetDescription() string
func (*UpdateCourseRequest) GetName ¶
func (x *UpdateCourseRequest) GetName() string
func (*UpdateCourseRequest) GetSemester ¶
func (x *UpdateCourseRequest) GetSemester() string
func (*UpdateCourseRequest) ProtoMessage ¶
func (*UpdateCourseRequest) ProtoMessage()
func (*UpdateCourseRequest) ProtoReflect ¶
func (x *UpdateCourseRequest) ProtoReflect() protoreflect.Message
func (*UpdateCourseRequest) Reset ¶
func (x *UpdateCourseRequest) Reset()
func (*UpdateCourseRequest) String ¶
func (x *UpdateCourseRequest) String() string
type UpdateCourseResponse ¶
type UpdateCourseResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*UpdateCourseResponse) Descriptor
deprecated
func (*UpdateCourseResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCourseResponse.ProtoReflect.Descriptor instead.
func (*UpdateCourseResponse) GetSuccess ¶
func (x *UpdateCourseResponse) GetSuccess() bool
func (*UpdateCourseResponse) ProtoMessage ¶
func (*UpdateCourseResponse) ProtoMessage()
func (*UpdateCourseResponse) ProtoReflect ¶
func (x *UpdateCourseResponse) ProtoReflect() protoreflect.Message
func (*UpdateCourseResponse) Reset ¶
func (x *UpdateCourseResponse) Reset()
func (*UpdateCourseResponse) String ¶
func (x *UpdateCourseResponse) String() string