Documentation
¶
Overview ¶
Package api_v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAmizoneServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAmizoneServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AmizoneServiceClient) error
- func RegisterAmizoneServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAmizoneServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AmizoneServiceServer) error
- func RegisterAmizoneServiceServer(s grpc.ServiceRegistrar, srv AmizoneServiceServer)
- type AmizoneDiaryEvent
- func (*AmizoneDiaryEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AmizoneDiaryEvent) GetCourseCode() string
- func (x *AmizoneDiaryEvent) GetCourseName() string
- func (x *AmizoneDiaryEvent) GetEnd() string
- func (x *AmizoneDiaryEvent) GetFaculty() string
- func (x *AmizoneDiaryEvent) GetRoom() string
- func (x *AmizoneDiaryEvent) GetStart() string
- func (x *AmizoneDiaryEvent) GetType() string
- func (*AmizoneDiaryEvent) ProtoMessage()
- func (x *AmizoneDiaryEvent) ProtoReflect() protoreflect.Message
- func (x *AmizoneDiaryEvent) Reset()
- func (x *AmizoneDiaryEvent) String() string
- type AmizoneServiceClient
- type AmizoneServiceServer
- type Attendance
- type AttendanceRecord
- func (*AttendanceRecord) Descriptor() ([]byte, []int)deprecated
- func (x *AttendanceRecord) GetAttendance() *Attendance
- func (x *AttendanceRecord) GetCourse() *CourseRef
- func (*AttendanceRecord) ProtoMessage()
- func (x *AttendanceRecord) ProtoReflect() protoreflect.Message
- func (x *AttendanceRecord) Reset()
- func (x *AttendanceRecord) String() string
- type AttendanceRecords
- func (*AttendanceRecords) Descriptor() ([]byte, []int)deprecated
- func (x *AttendanceRecords) GetRecords() []*AttendanceRecord
- func (*AttendanceRecords) ProtoMessage()
- func (x *AttendanceRecords) ProtoReflect() protoreflect.Message
- func (x *AttendanceRecords) Reset()
- func (x *AttendanceRecords) String() string
- type AttendanceState
- func (AttendanceState) Descriptor() protoreflect.EnumDescriptor
- func (x AttendanceState) Enum() *AttendanceState
- func (AttendanceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x AttendanceState) Number() protoreflect.EnumNumber
- func (x AttendanceState) String() string
- func (AttendanceState) Type() protoreflect.EnumType
- type ClassScheduleRequest
- func (*ClassScheduleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClassScheduleRequest) GetDate() *date.Date
- func (*ClassScheduleRequest) ProtoMessage()
- func (x *ClassScheduleRequest) ProtoReflect() protoreflect.Message
- func (x *ClassScheduleRequest) Reset()
- func (x *ClassScheduleRequest) String() string
- type Course
- func (*Course) Descriptor() ([]byte, []int)deprecated
- func (x *Course) GetAttendance() *Attendance
- func (x *Course) GetInternalMarks() *Marks
- func (x *Course) GetRef() *CourseRef
- func (x *Course) GetSyllabusDoc() string
- func (x *Course) GetType() string
- func (*Course) ProtoMessage()
- func (x *Course) ProtoReflect() protoreflect.Message
- func (x *Course) Reset()
- func (x *Course) String() string
- type CourseRef
- type Courses
- type Credits
- func (*Credits) Descriptor() ([]byte, []int)deprecated
- func (x *Credits) GetAcquired() int32
- func (x *Credits) GetEffective() int32
- func (x *Credits) GetPoints() int32
- func (*Credits) ProtoMessage()
- func (x *Credits) ProtoReflect() protoreflect.Message
- func (x *Credits) Reset()
- func (x *Credits) String() string
- type DeregisterWifiMacRequest
- func (*DeregisterWifiMacRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeregisterWifiMacRequest) GetAddress() string
- func (*DeregisterWifiMacRequest) ProtoMessage()
- func (x *DeregisterWifiMacRequest) ProtoReflect() protoreflect.Message
- func (x *DeregisterWifiMacRequest) Reset()
- func (x *DeregisterWifiMacRequest) String() string
- type EmptyMessage
- type ExamResultRecord
- func (*ExamResultRecord) Descriptor() ([]byte, []int)deprecated
- func (x *ExamResultRecord) GetCourse() *CourseRef
- func (x *ExamResultRecord) GetCredits() *Credits
- func (x *ExamResultRecord) GetPublishDate() *date.Date
- func (x *ExamResultRecord) GetScore() *Score
- func (*ExamResultRecord) ProtoMessage()
- func (x *ExamResultRecord) ProtoReflect() protoreflect.Message
- func (x *ExamResultRecord) Reset()
- func (x *ExamResultRecord) String() string
- type ExamResultRecords
- func (*ExamResultRecords) Descriptor() ([]byte, []int)deprecated
- func (x *ExamResultRecords) GetCourseWise() []*ExamResultRecord
- func (x *ExamResultRecords) GetOverall() []*OverallResult
- func (*ExamResultRecords) ProtoMessage()
- func (x *ExamResultRecords) ProtoReflect() protoreflect.Message
- func (x *ExamResultRecords) Reset()
- func (x *ExamResultRecords) String() string
- type ExaminationSchedule
- func (*ExaminationSchedule) Descriptor() ([]byte, []int)deprecated
- func (x *ExaminationSchedule) GetExams() []*ScheduledExam
- func (x *ExaminationSchedule) GetTitle() string
- func (*ExaminationSchedule) ProtoMessage()
- func (x *ExaminationSchedule) ProtoReflect() protoreflect.Message
- func (x *ExaminationSchedule) Reset()
- func (x *ExaminationSchedule) String() string
- type FillFacultyFeedbackRequest
- func (*FillFacultyFeedbackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FillFacultyFeedbackRequest) GetComment() string
- func (x *FillFacultyFeedbackRequest) GetQueryRating() int32
- func (x *FillFacultyFeedbackRequest) GetRating() int32
- func (*FillFacultyFeedbackRequest) ProtoMessage()
- func (x *FillFacultyFeedbackRequest) ProtoReflect() protoreflect.Message
- func (x *FillFacultyFeedbackRequest) Reset()
- func (x *FillFacultyFeedbackRequest) String() string
- type FillFacultyFeedbackResponse
- func (*FillFacultyFeedbackResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FillFacultyFeedbackResponse) GetFilledFor() int32
- func (*FillFacultyFeedbackResponse) ProtoMessage()
- func (x *FillFacultyFeedbackResponse) ProtoReflect() protoreflect.Message
- func (x *FillFacultyFeedbackResponse) Reset()
- func (x *FillFacultyFeedbackResponse) String() string
- type Marks
- type OverallResult
- func (*OverallResult) Descriptor() ([]byte, []int)deprecated
- func (x *OverallResult) GetCumulativeGradePointAverage() float32
- func (x *OverallResult) GetSemester() *SemesterRef
- func (x *OverallResult) GetSemesterGradePointAverage() float32
- func (*OverallResult) ProtoMessage()
- func (x *OverallResult) ProtoReflect() protoreflect.Message
- func (x *OverallResult) Reset()
- func (x *OverallResult) String() string
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetBatch() string
- func (x *Profile) GetBloodGroup() string
- func (x *Profile) GetDateOfBirth() *timestamppb.Timestamp
- func (x *Profile) GetEnrollmentNumber() string
- func (x *Profile) GetEnrollmentValidity() *timestamppb.Timestamp
- func (x *Profile) GetIdCardNumber() string
- func (x *Profile) GetName() string
- func (x *Profile) GetProgram() string
- func (x *Profile) GetUuid() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type RegisterWifiMacRequest
- func (*RegisterWifiMacRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterWifiMacRequest) GetAddress() string
- func (x *RegisterWifiMacRequest) GetOverrideLimit() bool
- func (*RegisterWifiMacRequest) ProtoMessage()
- func (x *RegisterWifiMacRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterWifiMacRequest) Reset()
- func (x *RegisterWifiMacRequest) String() string
- type ScheduledClass
- func (*ScheduledClass) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledClass) GetAttendance() AttendanceState
- func (x *ScheduledClass) GetCourse() *CourseRef
- func (x *ScheduledClass) GetEndTime() *timestamppb.Timestamp
- func (x *ScheduledClass) GetFaculty() string
- func (x *ScheduledClass) GetRoom() string
- func (x *ScheduledClass) GetStartTime() *timestamppb.Timestamp
- func (*ScheduledClass) ProtoMessage()
- func (x *ScheduledClass) ProtoReflect() protoreflect.Message
- func (x *ScheduledClass) Reset()
- func (x *ScheduledClass) String() string
- type ScheduledClasses
- func (*ScheduledClasses) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledClasses) GetClasses() []*ScheduledClass
- func (*ScheduledClasses) ProtoMessage()
- func (x *ScheduledClasses) ProtoReflect() protoreflect.Message
- func (x *ScheduledClasses) Reset()
- func (x *ScheduledClasses) String() string
- type ScheduledExam
- func (*ScheduledExam) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledExam) GetCourse() *CourseRef
- func (x *ScheduledExam) GetLocation() string
- func (x *ScheduledExam) GetMode() string
- func (x *ScheduledExam) GetTime() *timestamppb.Timestamp
- func (*ScheduledExam) ProtoMessage()
- func (x *ScheduledExam) ProtoReflect() protoreflect.Message
- func (x *ScheduledExam) Reset()
- func (x *ScheduledExam) String() string
- type Score
- type Semester
- type SemesterList
- type SemesterRef
- type UnimplementedAmizoneServiceServer
- func (UnimplementedAmizoneServiceServer) DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error)
- func (UnimplementedAmizoneServiceServer) FillFacultyFeedback(context.Context, *FillFacultyFeedbackRequest) (*FillFacultyFeedbackResponse, error)
- func (UnimplementedAmizoneServiceServer) GetAttendance(context.Context, *EmptyMessage) (*AttendanceRecords, error)
- func (UnimplementedAmizoneServiceServer) GetClassSchedule(context.Context, *ClassScheduleRequest) (*ScheduledClasses, error)
- func (UnimplementedAmizoneServiceServer) GetCourses(context.Context, *SemesterRef) (*Courses, error)
- func (UnimplementedAmizoneServiceServer) GetCurrentCourses(context.Context, *EmptyMessage) (*Courses, error)
- func (UnimplementedAmizoneServiceServer) GetCurrentExamResult(context.Context, *EmptyMessage) (*ExamResultRecords, error)
- func (UnimplementedAmizoneServiceServer) GetExamResult(context.Context, *SemesterRef) (*ExamResultRecords, error)
- func (UnimplementedAmizoneServiceServer) GetExamSchedule(context.Context, *EmptyMessage) (*ExaminationSchedule, error)
- func (UnimplementedAmizoneServiceServer) GetSemesters(context.Context, *EmptyMessage) (*SemesterList, error)
- func (UnimplementedAmizoneServiceServer) GetUserProfile(context.Context, *EmptyMessage) (*Profile, error)
- func (UnimplementedAmizoneServiceServer) GetWifiMacInfo(context.Context, *EmptyMessage) (*WifiMacInfo, error)
- func (UnimplementedAmizoneServiceServer) RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error)
- type UnsafeAmizoneServiceServer
- type WifiMacInfo
- func (*WifiMacInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WifiMacInfo) GetAddresses() []string
- func (x *WifiMacInfo) GetFreeSlots() int32
- func (x *WifiMacInfo) GetSlots() int32
- func (*WifiMacInfo) ProtoMessage()
- func (x *WifiMacInfo) ProtoReflect() protoreflect.Message
- func (x *WifiMacInfo) Reset()
- func (x *WifiMacInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AttendanceState_name = map[int32]string{ 0: "PENDING", 1: "PRESENT", 2: "ABSENT", 3: "NA", 4: "INVALID", } AttendanceState_value = map[string]int32{ "PENDING": 0, "PRESENT": 1, "ABSENT": 2, "NA": 3, "INVALID": 4, } )
Enum value maps for AttendanceState.
var AmizoneService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "go_amizone.server.proto.v1.AmizoneService", HandlerType: (*AmizoneServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAttendance", Handler: _AmizoneService_GetAttendance_Handler, }, { MethodName: "GetClassSchedule", Handler: _AmizoneService_GetClassSchedule_Handler, }, { MethodName: "GetExamSchedule", Handler: _AmizoneService_GetExamSchedule_Handler, }, { MethodName: "GetSemesters", Handler: _AmizoneService_GetSemesters_Handler, }, { MethodName: "GetCourses", Handler: _AmizoneService_GetCourses_Handler, }, { MethodName: "GetCurrentCourses", Handler: _AmizoneService_GetCurrentCourses_Handler, }, { MethodName: "GetExamResult", Handler: _AmizoneService_GetExamResult_Handler, }, { MethodName: "GetCurrentExamResult", Handler: _AmizoneService_GetCurrentExamResult_Handler, }, { MethodName: "GetUserProfile", Handler: _AmizoneService_GetUserProfile_Handler, }, { MethodName: "GetWifiMacInfo", Handler: _AmizoneService_GetWifiMacInfo_Handler, }, { MethodName: "RegisterWifiMac", Handler: _AmizoneService_RegisterWifiMac_Handler, }, { MethodName: "DeregisterWifiMac", Handler: _AmizoneService_DeregisterWifiMac_Handler, }, { MethodName: "FillFacultyFeedback", Handler: _AmizoneService_FillFacultyFeedback_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/amizone.proto", }
AmizoneService_ServiceDesc is the grpc.ServiceDesc for AmizoneService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_amizone_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAmizoneServiceHandler ¶
func RegisterAmizoneServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAmizoneServiceHandler registers the http handlers for service AmizoneService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAmizoneServiceHandlerClient ¶
func RegisterAmizoneServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AmizoneServiceClient) error
RegisterAmizoneServiceHandlerClient registers the http handlers for service AmizoneService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AmizoneServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AmizoneServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AmizoneServiceClient" to call the correct interceptors.
func RegisterAmizoneServiceHandlerFromEndpoint ¶
func RegisterAmizoneServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAmizoneServiceHandlerFromEndpoint is same as RegisterAmizoneServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAmizoneServiceHandlerServer ¶
func RegisterAmizoneServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AmizoneServiceServer) error
RegisterAmizoneServiceHandlerServer registers the http handlers for service AmizoneService to "mux". UnaryRPC :call AmizoneServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAmizoneServiceHandlerFromEndpoint instead.
func RegisterAmizoneServiceServer ¶
func RegisterAmizoneServiceServer(s grpc.ServiceRegistrar, srv AmizoneServiceServer)
Types ¶
type AmizoneDiaryEvent ¶
type AmizoneDiaryEvent struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` CourseCode string `protobuf:"bytes,2,opt,name=course_code,json=courseCode,proto3" json:"course_code,omitempty"` CourseName string `protobuf:"bytes,3,opt,name=course_name,json=courseName,proto3" json:"course_name,omitempty"` Faculty string `protobuf:"bytes,4,opt,name=faculty,proto3" json:"faculty,omitempty"` Room string `protobuf:"bytes,5,opt,name=room,proto3" json:"room,omitempty"` Start string `protobuf:"bytes,6,opt,name=start,proto3" json:"start,omitempty"` End string `protobuf:"bytes,7,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
AmizoneDiaryEvent models an event from the amizone "diary" API.
func (*AmizoneDiaryEvent) Descriptor
deprecated
func (*AmizoneDiaryEvent) Descriptor() ([]byte, []int)
Deprecated: Use AmizoneDiaryEvent.ProtoReflect.Descriptor instead.
func (*AmizoneDiaryEvent) GetCourseCode ¶
func (x *AmizoneDiaryEvent) GetCourseCode() string
func (*AmizoneDiaryEvent) GetCourseName ¶
func (x *AmizoneDiaryEvent) GetCourseName() string
func (*AmizoneDiaryEvent) GetEnd ¶
func (x *AmizoneDiaryEvent) GetEnd() string
func (*AmizoneDiaryEvent) GetFaculty ¶
func (x *AmizoneDiaryEvent) GetFaculty() string
func (*AmizoneDiaryEvent) GetRoom ¶
func (x *AmizoneDiaryEvent) GetRoom() string
func (*AmizoneDiaryEvent) GetStart ¶
func (x *AmizoneDiaryEvent) GetStart() string
func (*AmizoneDiaryEvent) GetType ¶
func (x *AmizoneDiaryEvent) GetType() string
func (*AmizoneDiaryEvent) ProtoMessage ¶
func (*AmizoneDiaryEvent) ProtoMessage()
func (*AmizoneDiaryEvent) ProtoReflect ¶
func (x *AmizoneDiaryEvent) ProtoReflect() protoreflect.Message
func (*AmizoneDiaryEvent) Reset ¶
func (x *AmizoneDiaryEvent) Reset()
func (*AmizoneDiaryEvent) String ¶
func (x *AmizoneDiaryEvent) String() string
type AmizoneServiceClient ¶
type AmizoneServiceClient interface { GetAttendance(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AttendanceRecords, error) GetClassSchedule(ctx context.Context, in *ClassScheduleRequest, opts ...grpc.CallOption) (*ScheduledClasses, error) // GetExamSchedule returns exam schedule. Amizone only allows access to schedules for the ongoing semester // and only close to the exam dates, so we don't take any parameters. GetExamSchedule(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExaminationSchedule, error) // GetSemesters returns a list of semesters that include past semesters and the current semester. // These semesters can be used in other RPCs that consume them, for example GetCourses. GetSemesters(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*SemesterList, error) // GetCourses returns a list of courses for the given semester. GetCourses(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*Courses, error) // GetCurrentCourses returns a list of courses for the "current" semester. GetCurrentCourses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Courses, error) // GetExamResult returns the exam result for the given semester. GetExamResult(ctx context.Context, in *SemesterRef, opts ...grpc.CallOption) (*ExamResultRecords, error) // GetCurrentExamResult returns the exam result for the "current" semester. GetCurrentExamResult(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExamResultRecords, error) // GetUserProfile returns the user's profile. GetUserProfile(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*Profile, error) // GetWifiMacInfo returns the user's registered MAC addresses. GetWifiMacInfo(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WifiMacInfo, error) // RegisterWifiMac registers a MAC address to the user's account. RegisterWifiMac(ctx context.Context, in *RegisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error) // DeregsiterWifiMac removes a registered MAC address from the user's account. DeregisterWifiMac(ctx context.Context, in *DeregisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error) // FillFacultyFeedback submits faculty feedback. // // It does so by making a tradeoffs -- all faculty feedback is submitted at // once and its identical for all of them. // // Parameters: // - rating: The rating to submit for all faculty. These are ratings on a scale of 1-5. // - query_rating: The rating to "query" type questions at the bottom of the feedback form. // These are ratings on a scale of 1-3. FillFacultyFeedback(ctx context.Context, in *FillFacultyFeedbackRequest, opts ...grpc.CallOption) (*FillFacultyFeedbackResponse, error) }
AmizoneServiceClient is the client API for AmizoneService 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 NewAmizoneServiceClient ¶
func NewAmizoneServiceClient(cc grpc.ClientConnInterface) AmizoneServiceClient
type AmizoneServiceServer ¶
type AmizoneServiceServer interface { GetAttendance(context.Context, *EmptyMessage) (*AttendanceRecords, error) GetClassSchedule(context.Context, *ClassScheduleRequest) (*ScheduledClasses, error) // GetExamSchedule returns exam schedule. Amizone only allows access to schedules for the ongoing semester // and only close to the exam dates, so we don't take any parameters. GetExamSchedule(context.Context, *EmptyMessage) (*ExaminationSchedule, error) // GetSemesters returns a list of semesters that include past semesters and the current semester. // These semesters can be used in other RPCs that consume them, for example GetCourses. GetSemesters(context.Context, *EmptyMessage) (*SemesterList, error) // GetCourses returns a list of courses for the given semester. GetCourses(context.Context, *SemesterRef) (*Courses, error) // GetCurrentCourses returns a list of courses for the "current" semester. GetCurrentCourses(context.Context, *EmptyMessage) (*Courses, error) // GetExamResult returns the exam result for the given semester. GetExamResult(context.Context, *SemesterRef) (*ExamResultRecords, error) // GetCurrentExamResult returns the exam result for the "current" semester. GetCurrentExamResult(context.Context, *EmptyMessage) (*ExamResultRecords, error) // GetUserProfile returns the user's profile. GetUserProfile(context.Context, *EmptyMessage) (*Profile, error) // GetWifiMacInfo returns the user's registered MAC addresses. GetWifiMacInfo(context.Context, *EmptyMessage) (*WifiMacInfo, error) // RegisterWifiMac registers a MAC address to the user's account. RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error) // DeregsiterWifiMac removes a registered MAC address from the user's account. DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error) // FillFacultyFeedback submits faculty feedback. // // It does so by making a tradeoffs -- all faculty feedback is submitted at // once and its identical for all of them. // // Parameters: // - rating: The rating to submit for all faculty. These are ratings on a scale of 1-5. // - query_rating: The rating to "query" type questions at the bottom of the feedback form. // These are ratings on a scale of 1-3. FillFacultyFeedback(context.Context, *FillFacultyFeedbackRequest) (*FillFacultyFeedbackResponse, error) // contains filtered or unexported methods }
AmizoneServiceServer is the server API for AmizoneService service. All implementations must embed UnimplementedAmizoneServiceServer for forward compatibility
type Attendance ¶
type Attendance struct { Attended int32 `protobuf:"varint,1,opt,name=attended,proto3" json:"attended,omitempty"` Held int32 `protobuf:"varint,2,opt,name=held,proto3" json:"held,omitempty"` // contains filtered or unexported fields }
Attendance messages are embedded in other messages (Course, AttendanceRecord).
func (*Attendance) Descriptor
deprecated
func (*Attendance) Descriptor() ([]byte, []int)
Deprecated: Use Attendance.ProtoReflect.Descriptor instead.
func (*Attendance) GetAttended ¶
func (x *Attendance) GetAttended() int32
func (*Attendance) GetHeld ¶
func (x *Attendance) GetHeld() int32
func (*Attendance) ProtoMessage ¶
func (*Attendance) ProtoMessage()
func (*Attendance) ProtoReflect ¶
func (x *Attendance) ProtoReflect() protoreflect.Message
func (*Attendance) Reset ¶
func (x *Attendance) Reset()
func (*Attendance) String ¶
func (x *Attendance) String() string
type AttendanceRecord ¶
type AttendanceRecord struct { Attendance *Attendance `protobuf:"bytes,1,opt,name=attendance,proto3" json:"attendance,omitempty"` Course *CourseRef `protobuf:"bytes,2,opt,name=course,proto3" json:"course,omitempty"` // contains filtered or unexported fields }
AttendanceRecord represents a student's attendance for a course.
func (*AttendanceRecord) Descriptor
deprecated
func (*AttendanceRecord) Descriptor() ([]byte, []int)
Deprecated: Use AttendanceRecord.ProtoReflect.Descriptor instead.
func (*AttendanceRecord) GetAttendance ¶
func (x *AttendanceRecord) GetAttendance() *Attendance
func (*AttendanceRecord) GetCourse ¶
func (x *AttendanceRecord) GetCourse() *CourseRef
func (*AttendanceRecord) ProtoMessage ¶
func (*AttendanceRecord) ProtoMessage()
func (*AttendanceRecord) ProtoReflect ¶
func (x *AttendanceRecord) ProtoReflect() protoreflect.Message
func (*AttendanceRecord) Reset ¶
func (x *AttendanceRecord) Reset()
func (*AttendanceRecord) String ¶
func (x *AttendanceRecord) String() string
type AttendanceRecords ¶
type AttendanceRecords struct { Records []*AttendanceRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
AttendanceRecords is a list of attendance records, usually representing attendance records for all courses in a semester.
func (*AttendanceRecords) Descriptor
deprecated
func (*AttendanceRecords) Descriptor() ([]byte, []int)
Deprecated: Use AttendanceRecords.ProtoReflect.Descriptor instead.
func (*AttendanceRecords) GetRecords ¶
func (x *AttendanceRecords) GetRecords() []*AttendanceRecord
func (*AttendanceRecords) ProtoMessage ¶
func (*AttendanceRecords) ProtoMessage()
func (*AttendanceRecords) ProtoReflect ¶
func (x *AttendanceRecords) ProtoReflect() protoreflect.Message
func (*AttendanceRecords) Reset ¶
func (x *AttendanceRecords) Reset()
func (*AttendanceRecords) String ¶
func (x *AttendanceRecords) String() string
type AttendanceState ¶
type AttendanceState int32
const ( AttendanceState_PENDING AttendanceState = 0 AttendanceState_PRESENT AttendanceState = 1 AttendanceState_ABSENT AttendanceState = 2 AttendanceState_NA AttendanceState = 3 AttendanceState_INVALID AttendanceState = 4 )
func (AttendanceState) Descriptor ¶
func (AttendanceState) Descriptor() protoreflect.EnumDescriptor
func (AttendanceState) Enum ¶
func (x AttendanceState) Enum() *AttendanceState
func (AttendanceState) EnumDescriptor
deprecated
func (AttendanceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use AttendanceState.Descriptor instead.
func (AttendanceState) Number ¶
func (x AttendanceState) Number() protoreflect.EnumNumber
func (AttendanceState) String ¶
func (x AttendanceState) String() string
func (AttendanceState) Type ¶
func (AttendanceState) Type() protoreflect.EnumType
type ClassScheduleRequest ¶
type ClassScheduleRequest struct { Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
func (*ClassScheduleRequest) Descriptor
deprecated
func (*ClassScheduleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClassScheduleRequest.ProtoReflect.Descriptor instead.
func (*ClassScheduleRequest) GetDate ¶
func (x *ClassScheduleRequest) GetDate() *date.Date
func (*ClassScheduleRequest) ProtoMessage ¶
func (*ClassScheduleRequest) ProtoMessage()
func (*ClassScheduleRequest) ProtoReflect ¶
func (x *ClassScheduleRequest) ProtoReflect() protoreflect.Message
func (*ClassScheduleRequest) Reset ¶
func (x *ClassScheduleRequest) Reset()
func (*ClassScheduleRequest) String ¶
func (x *ClassScheduleRequest) String() string
type Course ¶
type Course struct { Ref *CourseRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Attendance *Attendance `protobuf:"bytes,3,opt,name=attendance,proto3" json:"attendance,omitempty"` InternalMarks *Marks `protobuf:"bytes,4,opt,name=internal_marks,json=internalMarks,proto3" json:"internal_marks,omitempty"` SyllabusDoc string `protobuf:"bytes,5,opt,name=syllabus_doc,json=syllabusDoc,proto3" json:"syllabus_doc,omitempty"` // contains filtered or unexported fields }
Course represents a course on Amizone.
func (*Course) Descriptor
deprecated
func (*Course) GetAttendance ¶
func (x *Course) GetAttendance() *Attendance
func (*Course) GetInternalMarks ¶
func (*Course) GetSyllabusDoc ¶
func (*Course) ProtoMessage ¶
func (*Course) ProtoMessage()
func (*Course) ProtoReflect ¶
func (x *Course) ProtoReflect() protoreflect.Message
type CourseRef ¶
type CourseRef struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CourseRef) Descriptor
deprecated
func (*CourseRef) ProtoMessage ¶
func (*CourseRef) ProtoMessage()
func (*CourseRef) ProtoReflect ¶
func (x *CourseRef) ProtoReflect() protoreflect.Message
type Courses ¶
type Courses struct { Courses []*Course `protobuf:"bytes,1,rep,name=courses,proto3" json:"courses,omitempty"` // contains filtered or unexported fields }
Courses are a list of courses, usually used to group together courses for a semester.
func (*Courses) Descriptor
deprecated
func (*Courses) GetCourses ¶
func (*Courses) ProtoMessage ¶
func (*Courses) ProtoMessage()
func (*Courses) ProtoReflect ¶
func (x *Courses) ProtoReflect() protoreflect.Message
type Credits ¶
type Credits struct { Acquired int32 `protobuf:"varint,1,opt,name=acquired,proto3" json:"acquired,omitempty"` Effective int32 `protobuf:"varint,2,opt,name=effective,proto3" json:"effective,omitempty"` Points int32 `protobuf:"varint,3,opt,name=points,proto3" json:"points,omitempty"` // contains filtered or unexported fields }
Credits is a general message representing the credit Information in a result
func (*Credits) Descriptor
deprecated
func (*Credits) GetAcquired ¶
func (*Credits) GetEffective ¶
func (*Credits) ProtoMessage ¶
func (*Credits) ProtoMessage()
func (*Credits) ProtoReflect ¶
func (x *Credits) ProtoReflect() protoreflect.Message
type DeregisterWifiMacRequest ¶
type DeregisterWifiMacRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*DeregisterWifiMacRequest) Descriptor
deprecated
func (*DeregisterWifiMacRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeregisterWifiMacRequest.ProtoReflect.Descriptor instead.
func (*DeregisterWifiMacRequest) GetAddress ¶
func (x *DeregisterWifiMacRequest) GetAddress() string
func (*DeregisterWifiMacRequest) ProtoMessage ¶
func (*DeregisterWifiMacRequest) ProtoMessage()
func (*DeregisterWifiMacRequest) ProtoReflect ¶
func (x *DeregisterWifiMacRequest) ProtoReflect() protoreflect.Message
func (*DeregisterWifiMacRequest) Reset ¶
func (x *DeregisterWifiMacRequest) Reset()
func (*DeregisterWifiMacRequest) String ¶
func (x *DeregisterWifiMacRequest) String() string
type EmptyMessage ¶
type EmptyMessage struct {
// contains filtered or unexported fields
}
func (*EmptyMessage) Descriptor
deprecated
func (*EmptyMessage) Descriptor() ([]byte, []int)
Deprecated: Use EmptyMessage.ProtoReflect.Descriptor instead.
func (*EmptyMessage) ProtoMessage ¶
func (*EmptyMessage) ProtoMessage()
func (*EmptyMessage) ProtoReflect ¶
func (x *EmptyMessage) ProtoReflect() protoreflect.Message
func (*EmptyMessage) Reset ¶
func (x *EmptyMessage) Reset()
func (*EmptyMessage) String ¶
func (x *EmptyMessage) String() string
type ExamResultRecord ¶
type ExamResultRecord struct { Course *CourseRef `protobuf:"bytes,1,opt,name=course,proto3" json:"course,omitempty"` Score *Score `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` Credits *Credits `protobuf:"bytes,3,opt,name=credits,proto3" json:"credits,omitempty"` PublishDate *date.Date `protobuf:"bytes,4,opt,name=publish_date,json=publishDate,proto3" json:"publish_date,omitempty"` // contains filtered or unexported fields }
ResultRecord represents a course's result (a grade, credit, etc.) in a semester.
func (*ExamResultRecord) Descriptor
deprecated
func (*ExamResultRecord) Descriptor() ([]byte, []int)
Deprecated: Use ExamResultRecord.ProtoReflect.Descriptor instead.
func (*ExamResultRecord) GetCourse ¶
func (x *ExamResultRecord) GetCourse() *CourseRef
func (*ExamResultRecord) GetCredits ¶
func (x *ExamResultRecord) GetCredits() *Credits
func (*ExamResultRecord) GetPublishDate ¶
func (x *ExamResultRecord) GetPublishDate() *date.Date
func (*ExamResultRecord) GetScore ¶
func (x *ExamResultRecord) GetScore() *Score
func (*ExamResultRecord) ProtoMessage ¶
func (*ExamResultRecord) ProtoMessage()
func (*ExamResultRecord) ProtoReflect ¶
func (x *ExamResultRecord) ProtoReflect() protoreflect.Message
func (*ExamResultRecord) Reset ¶
func (x *ExamResultRecord) Reset()
func (*ExamResultRecord) String ¶
func (x *ExamResultRecord) String() string
type ExamResultRecords ¶
type ExamResultRecords struct { CourseWise []*ExamResultRecord `protobuf:"bytes,1,rep,name=course_wise,json=courseWise,proto3" json:"course_wise,omitempty"` Overall []*OverallResult `protobuf:"bytes,2,rep,name=overall,proto3" json:"overall,omitempty"` // contains filtered or unexported fields }
ExamResultRecords is returned by GetExamResult and GetCurrentExamResult and contains two arrays one for the course wise result and the other for semester wise gpa
func (*ExamResultRecords) Descriptor
deprecated
func (*ExamResultRecords) Descriptor() ([]byte, []int)
Deprecated: Use ExamResultRecords.ProtoReflect.Descriptor instead.
func (*ExamResultRecords) GetCourseWise ¶
func (x *ExamResultRecords) GetCourseWise() []*ExamResultRecord
func (*ExamResultRecords) GetOverall ¶
func (x *ExamResultRecords) GetOverall() []*OverallResult
func (*ExamResultRecords) ProtoMessage ¶
func (*ExamResultRecords) ProtoMessage()
func (*ExamResultRecords) ProtoReflect ¶
func (x *ExamResultRecords) ProtoReflect() protoreflect.Message
func (*ExamResultRecords) Reset ¶
func (x *ExamResultRecords) Reset()
func (*ExamResultRecords) String ¶
func (x *ExamResultRecords) String() string
type ExaminationSchedule ¶
type ExaminationSchedule struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Exams []*ScheduledExam `protobuf:"bytes,2,rep,name=exams,proto3" json:"exams,omitempty"` // contains filtered or unexported fields }
func (*ExaminationSchedule) Descriptor
deprecated
func (*ExaminationSchedule) Descriptor() ([]byte, []int)
Deprecated: Use ExaminationSchedule.ProtoReflect.Descriptor instead.
func (*ExaminationSchedule) GetExams ¶
func (x *ExaminationSchedule) GetExams() []*ScheduledExam
func (*ExaminationSchedule) GetTitle ¶
func (x *ExaminationSchedule) GetTitle() string
func (*ExaminationSchedule) ProtoMessage ¶
func (*ExaminationSchedule) ProtoMessage()
func (*ExaminationSchedule) ProtoReflect ¶
func (x *ExaminationSchedule) ProtoReflect() protoreflect.Message
func (*ExaminationSchedule) Reset ¶
func (x *ExaminationSchedule) Reset()
func (*ExaminationSchedule) String ¶
func (x *ExaminationSchedule) String() string
type FillFacultyFeedbackRequest ¶
type FillFacultyFeedbackRequest struct { Rating int32 `protobuf:"varint,1,opt,name=rating,proto3" json:"rating,omitempty"` QueryRating int32 `protobuf:"varint,2,opt,name=query_rating,json=queryRating,proto3" json:"query_rating,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*FillFacultyFeedbackRequest) Descriptor
deprecated
func (*FillFacultyFeedbackRequest) Descriptor() ([]byte, []int)
Deprecated: Use FillFacultyFeedbackRequest.ProtoReflect.Descriptor instead.
func (*FillFacultyFeedbackRequest) GetComment ¶
func (x *FillFacultyFeedbackRequest) GetComment() string
func (*FillFacultyFeedbackRequest) GetQueryRating ¶
func (x *FillFacultyFeedbackRequest) GetQueryRating() int32
func (*FillFacultyFeedbackRequest) GetRating ¶
func (x *FillFacultyFeedbackRequest) GetRating() int32
func (*FillFacultyFeedbackRequest) ProtoMessage ¶
func (*FillFacultyFeedbackRequest) ProtoMessage()
func (*FillFacultyFeedbackRequest) ProtoReflect ¶
func (x *FillFacultyFeedbackRequest) ProtoReflect() protoreflect.Message
func (*FillFacultyFeedbackRequest) Reset ¶
func (x *FillFacultyFeedbackRequest) Reset()
func (*FillFacultyFeedbackRequest) String ¶
func (x *FillFacultyFeedbackRequest) String() string
type FillFacultyFeedbackResponse ¶
type FillFacultyFeedbackResponse struct { FilledFor int32 `protobuf:"varint,1,opt,name=filled_for,json=filledFor,proto3" json:"filled_for,omitempty"` // contains filtered or unexported fields }
func (*FillFacultyFeedbackResponse) Descriptor
deprecated
func (*FillFacultyFeedbackResponse) Descriptor() ([]byte, []int)
Deprecated: Use FillFacultyFeedbackResponse.ProtoReflect.Descriptor instead.
func (*FillFacultyFeedbackResponse) GetFilledFor ¶
func (x *FillFacultyFeedbackResponse) GetFilledFor() int32
func (*FillFacultyFeedbackResponse) ProtoMessage ¶
func (*FillFacultyFeedbackResponse) ProtoMessage()
func (*FillFacultyFeedbackResponse) ProtoReflect ¶
func (x *FillFacultyFeedbackResponse) ProtoReflect() protoreflect.Message
func (*FillFacultyFeedbackResponse) Reset ¶
func (x *FillFacultyFeedbackResponse) Reset()
func (*FillFacultyFeedbackResponse) String ¶
func (x *FillFacultyFeedbackResponse) String() string
type Marks ¶
type Marks struct { Have float32 `protobuf:"fixed32,1,opt,name=have,proto3" json:"have,omitempty"` Max float32 `protobuf:"fixed32,2,opt,name=max,proto3" json:"max,omitempty"` // contains filtered or unexported fields }
Marks is a general message representing a student's marks (internal, external, total, etc). in a course or otherwise. It is embedded in other messages and its meaning is context-dependent.
func (*Marks) Descriptor
deprecated
func (*Marks) ProtoMessage ¶
func (*Marks) ProtoMessage()
func (*Marks) ProtoReflect ¶
func (x *Marks) ProtoReflect() protoreflect.Message
type OverallResult ¶
type OverallResult struct { Semester *SemesterRef `protobuf:"bytes,1,opt,name=semester,proto3" json:"semester,omitempty"` SemesterGradePointAverage float32 `` /* 142-byte string literal not displayed */ CumulativeGradePointAverage float32 `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
OverallResult message represents the result for a semester (SGPA, CGPA), this is also returned as an array containing the result for every semester
func (*OverallResult) Descriptor
deprecated
func (*OverallResult) Descriptor() ([]byte, []int)
Deprecated: Use OverallResult.ProtoReflect.Descriptor instead.
func (*OverallResult) GetCumulativeGradePointAverage ¶
func (x *OverallResult) GetCumulativeGradePointAverage() float32
func (*OverallResult) GetSemester ¶
func (x *OverallResult) GetSemester() *SemesterRef
func (*OverallResult) GetSemesterGradePointAverage ¶
func (x *OverallResult) GetSemesterGradePointAverage() float32
func (*OverallResult) ProtoMessage ¶
func (*OverallResult) ProtoMessage()
func (*OverallResult) ProtoReflect ¶
func (x *OverallResult) ProtoReflect() protoreflect.Message
func (*OverallResult) Reset ¶
func (x *OverallResult) Reset()
func (*OverallResult) String ¶
func (x *OverallResult) String() string
type Profile ¶
type Profile struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` EnrollmentNumber string `protobuf:"bytes,2,opt,name=enrollment_number,json=enrollmentNumber,proto3" json:"enrollment_number,omitempty"` EnrollmentValidity *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=enrollment_validity,json=enrollmentValidity,proto3" json:"enrollment_validity,omitempty"` Batch string `protobuf:"bytes,4,opt,name=batch,proto3" json:"batch,omitempty"` Program string `protobuf:"bytes,5,opt,name=program,proto3" json:"program,omitempty"` DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` BloodGroup string `protobuf:"bytes,7,opt,name=blood_group,json=bloodGroup,proto3" json:"blood_group,omitempty"` IdCardNumber string `protobuf:"bytes,8,opt,name=id_card_number,json=idCardNumber,proto3" json:"id_card_number,omitempty"` Uuid string `protobuf:"bytes,9,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Profile models information exposed by the Amizone ID card page
func (*Profile) Descriptor
deprecated
func (*Profile) GetBloodGroup ¶
func (*Profile) GetDateOfBirth ¶
func (x *Profile) GetDateOfBirth() *timestamppb.Timestamp
func (*Profile) GetEnrollmentNumber ¶
func (*Profile) GetEnrollmentValidity ¶
func (x *Profile) GetEnrollmentValidity() *timestamppb.Timestamp
func (*Profile) GetIdCardNumber ¶
func (*Profile) GetProgram ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type RegisterWifiMacRequest ¶
type RegisterWifiMacRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` OverrideLimit bool `protobuf:"varint,2,opt,name=override_limit,json=overrideLimit,proto3" json:"override_limit,omitempty"` // contains filtered or unexported fields }
func (*RegisterWifiMacRequest) Descriptor
deprecated
func (*RegisterWifiMacRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterWifiMacRequest.ProtoReflect.Descriptor instead.
func (*RegisterWifiMacRequest) GetAddress ¶
func (x *RegisterWifiMacRequest) GetAddress() string
func (*RegisterWifiMacRequest) GetOverrideLimit ¶
func (x *RegisterWifiMacRequest) GetOverrideLimit() bool
func (*RegisterWifiMacRequest) ProtoMessage ¶
func (*RegisterWifiMacRequest) ProtoMessage()
func (*RegisterWifiMacRequest) ProtoReflect ¶
func (x *RegisterWifiMacRequest) ProtoReflect() protoreflect.Message
func (*RegisterWifiMacRequest) Reset ¶
func (x *RegisterWifiMacRequest) Reset()
func (*RegisterWifiMacRequest) String ¶
func (x *RegisterWifiMacRequest) String() string
type ScheduledClass ¶
type ScheduledClass struct { Course *CourseRef `protobuf:"bytes,1,opt,name=course,proto3" json:"course,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Faculty string `protobuf:"bytes,4,opt,name=faculty,proto3" json:"faculty,omitempty"` Room string `protobuf:"bytes,5,opt,name=room,proto3" json:"room,omitempty"` Attendance AttendanceState `protobuf:"varint,8,opt,name=attendance,proto3,enum=go_amizone.server.proto.v1.AttendanceState" json:"attendance,omitempty"` // contains filtered or unexported fields }
ScheduledClass represents a scheduled class.
func (*ScheduledClass) Descriptor
deprecated
func (*ScheduledClass) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledClass.ProtoReflect.Descriptor instead.
func (*ScheduledClass) GetAttendance ¶
func (x *ScheduledClass) GetAttendance() AttendanceState
func (*ScheduledClass) GetCourse ¶
func (x *ScheduledClass) GetCourse() *CourseRef
func (*ScheduledClass) GetEndTime ¶
func (x *ScheduledClass) GetEndTime() *timestamppb.Timestamp
func (*ScheduledClass) GetFaculty ¶
func (x *ScheduledClass) GetFaculty() string
func (*ScheduledClass) GetRoom ¶
func (x *ScheduledClass) GetRoom() string
func (*ScheduledClass) GetStartTime ¶
func (x *ScheduledClass) GetStartTime() *timestamppb.Timestamp
func (*ScheduledClass) ProtoMessage ¶
func (*ScheduledClass) ProtoMessage()
func (*ScheduledClass) ProtoReflect ¶
func (x *ScheduledClass) ProtoReflect() protoreflect.Message
func (*ScheduledClass) Reset ¶
func (x *ScheduledClass) Reset()
func (*ScheduledClass) String ¶
func (x *ScheduledClass) String() string
type ScheduledClasses ¶
type ScheduledClasses struct { Classes []*ScheduledClass `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` // contains filtered or unexported fields }
ScheduledClasses is a group of scheduled classes, usually used to represent daily class schedules.
func (*ScheduledClasses) Descriptor
deprecated
func (*ScheduledClasses) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledClasses.ProtoReflect.Descriptor instead.
func (*ScheduledClasses) GetClasses ¶
func (x *ScheduledClasses) GetClasses() []*ScheduledClass
func (*ScheduledClasses) ProtoMessage ¶
func (*ScheduledClasses) ProtoMessage()
func (*ScheduledClasses) ProtoReflect ¶
func (x *ScheduledClasses) ProtoReflect() protoreflect.Message
func (*ScheduledClasses) Reset ¶
func (x *ScheduledClasses) Reset()
func (*ScheduledClasses) String ¶
func (x *ScheduledClasses) String() string
type ScheduledExam ¶
type ScheduledExam struct { Course *CourseRef `protobuf:"bytes,1,opt,name=course,proto3" json:"course,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` Location *string `protobuf:"bytes,4,opt,name=location,proto3,oneof" json:"location,omitempty"` // contains filtered or unexported fields }
func (*ScheduledExam) Descriptor
deprecated
func (*ScheduledExam) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledExam.ProtoReflect.Descriptor instead.
func (*ScheduledExam) GetCourse ¶
func (x *ScheduledExam) GetCourse() *CourseRef
func (*ScheduledExam) GetLocation ¶
func (x *ScheduledExam) GetLocation() string
func (*ScheduledExam) GetMode ¶
func (x *ScheduledExam) GetMode() string
func (*ScheduledExam) GetTime ¶
func (x *ScheduledExam) GetTime() *timestamppb.Timestamp
func (*ScheduledExam) ProtoMessage ¶
func (*ScheduledExam) ProtoMessage()
func (*ScheduledExam) ProtoReflect ¶
func (x *ScheduledExam) ProtoReflect() protoreflect.Message
func (*ScheduledExam) Reset ¶
func (x *ScheduledExam) Reset()
func (*ScheduledExam) String ¶
func (x *ScheduledExam) String() string
type Score ¶
type Score struct { Max int32 `protobuf:"varint,1,opt,name=max,proto3" json:"max,omitempty"` Grade string `protobuf:"bytes,2,opt,name=grade,proto3" json:"grade,omitempty"` GradePoint int32 `protobuf:"varint,3,opt,name=grade_point,json=gradePoint,proto3" json:"grade_point,omitempty"` // contains filtered or unexported fields }
Score is a general message representing the grade in a result
func (*Score) Descriptor
deprecated
func (*Score) GetGradePoint ¶
func (*Score) ProtoMessage ¶
func (*Score) ProtoMessage()
func (*Score) ProtoReflect ¶
func (x *Score) ProtoReflect() protoreflect.Message
type Semester ¶
type Semester struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
Semester models a semester reference on Amizone. We include both a semester "name" / label and a ref to decouple the way they're represented from their form values. These happen to be same at the time of modelling, however, so they might appear duplicitous.
func (*Semester) Descriptor
deprecated
func (*Semester) ProtoMessage ¶
func (*Semester) ProtoMessage()
func (*Semester) ProtoReflect ¶
func (x *Semester) ProtoReflect() protoreflect.Message
type SemesterList ¶
type SemesterList struct { Semesters []*Semester `protobuf:"bytes,1,rep,name=semesters,proto3" json:"semesters,omitempty"` // contains filtered or unexported fields }
func (*SemesterList) Descriptor
deprecated
func (*SemesterList) Descriptor() ([]byte, []int)
Deprecated: Use SemesterList.ProtoReflect.Descriptor instead.
func (*SemesterList) GetSemesters ¶
func (x *SemesterList) GetSemesters() []*Semester
func (*SemesterList) ProtoMessage ¶
func (*SemesterList) ProtoMessage()
func (*SemesterList) ProtoReflect ¶
func (x *SemesterList) ProtoReflect() protoreflect.Message
func (*SemesterList) Reset ¶
func (x *SemesterList) Reset()
func (*SemesterList) String ¶
func (x *SemesterList) String() string
type SemesterRef ¶
type SemesterRef struct { SemesterRef string `protobuf:"bytes,1,opt,name=semester_ref,json=semesterRef,proto3" json:"semester_ref,omitempty"` // contains filtered or unexported fields }
SemesterRef is a reference to a semester. References are used to avoid coupling the semester's name to the semester's ID. References can be retrieved through the GetSemesters RPC.
func (*SemesterRef) Descriptor
deprecated
func (*SemesterRef) Descriptor() ([]byte, []int)
Deprecated: Use SemesterRef.ProtoReflect.Descriptor instead.
func (*SemesterRef) GetSemesterRef ¶
func (x *SemesterRef) GetSemesterRef() string
func (*SemesterRef) ProtoMessage ¶
func (*SemesterRef) ProtoMessage()
func (*SemesterRef) ProtoReflect ¶
func (x *SemesterRef) ProtoReflect() protoreflect.Message
func (*SemesterRef) Reset ¶
func (x *SemesterRef) Reset()
func (*SemesterRef) String ¶
func (x *SemesterRef) String() string
type UnimplementedAmizoneServiceServer ¶
type UnimplementedAmizoneServiceServer struct { }
UnimplementedAmizoneServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAmizoneServiceServer) DeregisterWifiMac ¶
func (UnimplementedAmizoneServiceServer) DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error)
func (UnimplementedAmizoneServiceServer) FillFacultyFeedback ¶
func (UnimplementedAmizoneServiceServer) FillFacultyFeedback(context.Context, *FillFacultyFeedbackRequest) (*FillFacultyFeedbackResponse, error)
func (UnimplementedAmizoneServiceServer) GetAttendance ¶
func (UnimplementedAmizoneServiceServer) GetAttendance(context.Context, *EmptyMessage) (*AttendanceRecords, error)
func (UnimplementedAmizoneServiceServer) GetClassSchedule ¶
func (UnimplementedAmizoneServiceServer) GetClassSchedule(context.Context, *ClassScheduleRequest) (*ScheduledClasses, error)
func (UnimplementedAmizoneServiceServer) GetCourses ¶
func (UnimplementedAmizoneServiceServer) GetCourses(context.Context, *SemesterRef) (*Courses, error)
func (UnimplementedAmizoneServiceServer) GetCurrentCourses ¶
func (UnimplementedAmizoneServiceServer) GetCurrentCourses(context.Context, *EmptyMessage) (*Courses, error)
func (UnimplementedAmizoneServiceServer) GetCurrentExamResult ¶
func (UnimplementedAmizoneServiceServer) GetCurrentExamResult(context.Context, *EmptyMessage) (*ExamResultRecords, error)
func (UnimplementedAmizoneServiceServer) GetExamResult ¶
func (UnimplementedAmizoneServiceServer) GetExamResult(context.Context, *SemesterRef) (*ExamResultRecords, error)
func (UnimplementedAmizoneServiceServer) GetExamSchedule ¶
func (UnimplementedAmizoneServiceServer) GetExamSchedule(context.Context, *EmptyMessage) (*ExaminationSchedule, error)
func (UnimplementedAmizoneServiceServer) GetSemesters ¶
func (UnimplementedAmizoneServiceServer) GetSemesters(context.Context, *EmptyMessage) (*SemesterList, error)
func (UnimplementedAmizoneServiceServer) GetUserProfile ¶
func (UnimplementedAmizoneServiceServer) GetUserProfile(context.Context, *EmptyMessage) (*Profile, error)
func (UnimplementedAmizoneServiceServer) GetWifiMacInfo ¶
func (UnimplementedAmizoneServiceServer) GetWifiMacInfo(context.Context, *EmptyMessage) (*WifiMacInfo, error)
func (UnimplementedAmizoneServiceServer) RegisterWifiMac ¶
func (UnimplementedAmizoneServiceServer) RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error)
type UnsafeAmizoneServiceServer ¶
type UnsafeAmizoneServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAmizoneServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AmizoneServiceServer will result in compilation errors.
type WifiMacInfo ¶
type WifiMacInfo struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` Slots int32 `protobuf:"varint,2,opt,name=slots,proto3" json:"slots,omitempty"` FreeSlots int32 `protobuf:"varint,3,opt,name=free_slots,json=freeSlots,proto3" json:"free_slots,omitempty"` // contains filtered or unexported fields }
func (*WifiMacInfo) Descriptor
deprecated
func (*WifiMacInfo) Descriptor() ([]byte, []int)
Deprecated: Use WifiMacInfo.ProtoReflect.Descriptor instead.
func (*WifiMacInfo) GetAddresses ¶
func (x *WifiMacInfo) GetAddresses() []string
func (*WifiMacInfo) GetFreeSlots ¶
func (x *WifiMacInfo) GetFreeSlots() int32
func (*WifiMacInfo) GetSlots ¶
func (x *WifiMacInfo) GetSlots() int32
func (*WifiMacInfo) ProtoMessage ¶
func (*WifiMacInfo) ProtoMessage()
func (*WifiMacInfo) ProtoReflect ¶
func (x *WifiMacInfo) ProtoReflect() protoreflect.Message
func (*WifiMacInfo) Reset ¶
func (x *WifiMacInfo) Reset()
func (*WifiMacInfo) String ¶
func (x *WifiMacInfo) String() string