api_v1

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package api_v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WifiMacInfo, error)
	RegisterWifiMac(ctx context.Context, in *RegisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error)
	DeregisterWifiMac(ctx context.Context, in *DeregisterWifiMacRequest, opts ...grpc.CallOption) (*EmptyMessage, error)
	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.

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(context.Context, *EmptyMessage) (*WifiMacInfo, error)
	RegisterWifiMac(context.Context, *RegisterWifiMacRequest) (*EmptyMessage, error)
	DeregisterWifiMac(context.Context, *DeregisterWifiMacRequest) (*EmptyMessage, error)
	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 added in v0.4.0

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 added in v0.4.0

func (AttendanceState) Enum added in v0.4.0

func (x AttendanceState) Enum() *AttendanceState

func (AttendanceState) EnumDescriptor deprecated added in v0.4.0

func (AttendanceState) EnumDescriptor() ([]byte, []int)

Deprecated: Use AttendanceState.Descriptor instead.

func (AttendanceState) Number added in v0.4.0

func (AttendanceState) String added in v0.4.0

func (x AttendanceState) String() string

func (AttendanceState) Type added in v0.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Course.ProtoReflect.Descriptor instead.

func (*Course) GetAttendance

func (x *Course) GetAttendance() *Attendance

func (*Course) GetInternalMarks

func (x *Course) GetInternalMarks() *Marks

func (*Course) GetRef

func (x *Course) GetRef() *CourseRef

func (*Course) GetSyllabusDoc

func (x *Course) GetSyllabusDoc() string

func (*Course) GetType

func (x *Course) GetType() string

func (*Course) ProtoMessage

func (*Course) ProtoMessage()

func (*Course) ProtoReflect

func (x *Course) ProtoReflect() protoreflect.Message

func (*Course) Reset

func (x *Course) Reset()

func (*Course) String

func (x *Course) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CourseRef.ProtoReflect.Descriptor instead.

func (*CourseRef) GetCode

func (x *CourseRef) GetCode() string

func (*CourseRef) GetName

func (x *CourseRef) GetName() string

func (*CourseRef) ProtoMessage

func (*CourseRef) ProtoMessage()

func (*CourseRef) ProtoReflect

func (x *CourseRef) ProtoReflect() protoreflect.Message

func (*CourseRef) Reset

func (x *CourseRef) Reset()

func (*CourseRef) String

func (x *CourseRef) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Courses.ProtoReflect.Descriptor instead.

func (*Courses) GetCourses

func (x *Courses) GetCourses() []*Course

func (*Courses) ProtoMessage

func (*Courses) ProtoMessage()

func (*Courses) ProtoReflect

func (x *Courses) ProtoReflect() protoreflect.Message

func (*Courses) Reset

func (x *Courses) Reset()

func (*Courses) String

func (x *Courses) String() string

type Credits added in v0.8.0

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 added in v0.8.0

func (*Credits) Descriptor() ([]byte, []int)

Deprecated: Use Credits.ProtoReflect.Descriptor instead.

func (*Credits) GetAcquired added in v0.8.0

func (x *Credits) GetAcquired() int32

func (*Credits) GetEffective added in v0.8.0

func (x *Credits) GetEffective() int32

func (*Credits) GetPoints added in v0.8.0

func (x *Credits) GetPoints() int32

func (*Credits) ProtoMessage added in v0.8.0

func (*Credits) ProtoMessage()

func (*Credits) ProtoReflect added in v0.8.0

func (x *Credits) ProtoReflect() protoreflect.Message

func (*Credits) Reset added in v0.8.0

func (x *Credits) Reset()

func (*Credits) String added in v0.8.0

func (x *Credits) String() string

type DeregisterWifiMacRequest added in v0.3.0

type DeregisterWifiMacRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*DeregisterWifiMacRequest) Descriptor deprecated added in v0.3.0

func (*DeregisterWifiMacRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeregisterWifiMacRequest.ProtoReflect.Descriptor instead.

func (*DeregisterWifiMacRequest) GetAddress added in v0.3.0

func (x *DeregisterWifiMacRequest) GetAddress() string

func (*DeregisterWifiMacRequest) ProtoMessage added in v0.3.0

func (*DeregisterWifiMacRequest) ProtoMessage()

func (*DeregisterWifiMacRequest) ProtoReflect added in v0.3.0

func (x *DeregisterWifiMacRequest) ProtoReflect() protoreflect.Message

func (*DeregisterWifiMacRequest) Reset added in v0.3.0

func (x *DeregisterWifiMacRequest) Reset()

func (*DeregisterWifiMacRequest) String added in v0.3.0

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 added in v0.8.0

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 added in v0.8.0

func (*ExamResultRecord) Descriptor() ([]byte, []int)

Deprecated: Use ExamResultRecord.ProtoReflect.Descriptor instead.

func (*ExamResultRecord) GetCourse added in v0.8.0

func (x *ExamResultRecord) GetCourse() *CourseRef

func (*ExamResultRecord) GetCredits added in v0.8.0

func (x *ExamResultRecord) GetCredits() *Credits

func (*ExamResultRecord) GetPublishDate added in v0.8.0

func (x *ExamResultRecord) GetPublishDate() *date.Date

func (*ExamResultRecord) GetScore added in v0.8.0

func (x *ExamResultRecord) GetScore() *Score

func (*ExamResultRecord) ProtoMessage added in v0.8.0

func (*ExamResultRecord) ProtoMessage()

func (*ExamResultRecord) ProtoReflect added in v0.8.0

func (x *ExamResultRecord) ProtoReflect() protoreflect.Message

func (*ExamResultRecord) Reset added in v0.8.0

func (x *ExamResultRecord) Reset()

func (*ExamResultRecord) String added in v0.8.0

func (x *ExamResultRecord) String() string

type ExamResultRecords added in v0.8.0

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 added in v0.8.0

func (*ExamResultRecords) Descriptor() ([]byte, []int)

Deprecated: Use ExamResultRecords.ProtoReflect.Descriptor instead.

func (*ExamResultRecords) GetCourseWise added in v0.8.0

func (x *ExamResultRecords) GetCourseWise() []*ExamResultRecord

func (*ExamResultRecords) GetOverall added in v0.8.0

func (x *ExamResultRecords) GetOverall() []*OverallResult

func (*ExamResultRecords) ProtoMessage added in v0.8.0

func (*ExamResultRecords) ProtoMessage()

func (*ExamResultRecords) ProtoReflect added in v0.8.0

func (x *ExamResultRecords) ProtoReflect() protoreflect.Message

func (*ExamResultRecords) Reset added in v0.8.0

func (x *ExamResultRecords) Reset()

func (*ExamResultRecords) String added in v0.8.0

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 added in v0.6.0

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 added in v0.6.0

func (*FillFacultyFeedbackRequest) Descriptor() ([]byte, []int)

Deprecated: Use FillFacultyFeedbackRequest.ProtoReflect.Descriptor instead.

func (*FillFacultyFeedbackRequest) GetComment added in v0.6.0

func (x *FillFacultyFeedbackRequest) GetComment() string

func (*FillFacultyFeedbackRequest) GetQueryRating added in v0.6.0

func (x *FillFacultyFeedbackRequest) GetQueryRating() int32

func (*FillFacultyFeedbackRequest) GetRating added in v0.6.0

func (x *FillFacultyFeedbackRequest) GetRating() int32

func (*FillFacultyFeedbackRequest) ProtoMessage added in v0.6.0

func (*FillFacultyFeedbackRequest) ProtoMessage()

func (*FillFacultyFeedbackRequest) ProtoReflect added in v0.6.0

func (*FillFacultyFeedbackRequest) Reset added in v0.6.0

func (x *FillFacultyFeedbackRequest) Reset()

func (*FillFacultyFeedbackRequest) String added in v0.6.0

func (x *FillFacultyFeedbackRequest) String() string

type FillFacultyFeedbackResponse added in v0.6.0

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 added in v0.6.0

func (*FillFacultyFeedbackResponse) Descriptor() ([]byte, []int)

Deprecated: Use FillFacultyFeedbackResponse.ProtoReflect.Descriptor instead.

func (*FillFacultyFeedbackResponse) GetFilledFor added in v0.6.0

func (x *FillFacultyFeedbackResponse) GetFilledFor() int32

func (*FillFacultyFeedbackResponse) ProtoMessage added in v0.6.0

func (*FillFacultyFeedbackResponse) ProtoMessage()

func (*FillFacultyFeedbackResponse) ProtoReflect added in v0.6.0

func (*FillFacultyFeedbackResponse) Reset added in v0.6.0

func (x *FillFacultyFeedbackResponse) Reset()

func (*FillFacultyFeedbackResponse) String added in v0.6.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Marks.ProtoReflect.Descriptor instead.

func (*Marks) GetHave

func (x *Marks) GetHave() float32

func (*Marks) GetMax

func (x *Marks) GetMax() float32

func (*Marks) ProtoMessage

func (*Marks) ProtoMessage()

func (*Marks) ProtoReflect

func (x *Marks) ProtoReflect() protoreflect.Message

func (*Marks) Reset

func (x *Marks) Reset()

func (*Marks) String

func (x *Marks) String() string

type OverallResult added in v0.8.0

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 added in v0.8.0

func (*OverallResult) Descriptor() ([]byte, []int)

Deprecated: Use OverallResult.ProtoReflect.Descriptor instead.

func (*OverallResult) GetCumulativeGradePointAverage added in v0.8.0

func (x *OverallResult) GetCumulativeGradePointAverage() float32

func (*OverallResult) GetSemester added in v0.8.0

func (x *OverallResult) GetSemester() *SemesterRef

func (*OverallResult) GetSemesterGradePointAverage added in v0.8.0

func (x *OverallResult) GetSemesterGradePointAverage() float32

func (*OverallResult) ProtoMessage added in v0.8.0

func (*OverallResult) ProtoMessage()

func (*OverallResult) ProtoReflect added in v0.8.0

func (x *OverallResult) ProtoReflect() protoreflect.Message

func (*OverallResult) Reset added in v0.8.0

func (x *OverallResult) Reset()

func (*OverallResult) String added in v0.8.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetBatch

func (x *Profile) GetBatch() string

func (*Profile) GetBloodGroup

func (x *Profile) GetBloodGroup() string

func (*Profile) GetDateOfBirth

func (x *Profile) GetDateOfBirth() *timestamppb.Timestamp

func (*Profile) GetEnrollmentNumber

func (x *Profile) GetEnrollmentNumber() string

func (*Profile) GetEnrollmentValidity

func (x *Profile) GetEnrollmentValidity() *timestamppb.Timestamp

func (*Profile) GetIdCardNumber

func (x *Profile) GetIdCardNumber() string

func (*Profile) GetName

func (x *Profile) GetName() string

func (*Profile) GetProgram

func (x *Profile) GetProgram() string

func (*Profile) GetUuid

func (x *Profile) GetUuid() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

func (x *Profile) ProtoReflect() protoreflect.Message

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type RegisterWifiMacRequest added in v0.3.0

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 added in v0.3.0

func (*RegisterWifiMacRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterWifiMacRequest.ProtoReflect.Descriptor instead.

func (*RegisterWifiMacRequest) GetAddress added in v0.3.0

func (x *RegisterWifiMacRequest) GetAddress() string

func (*RegisterWifiMacRequest) GetOverrideLimit added in v0.3.0

func (x *RegisterWifiMacRequest) GetOverrideLimit() bool

func (*RegisterWifiMacRequest) ProtoMessage added in v0.3.0

func (*RegisterWifiMacRequest) ProtoMessage()

func (*RegisterWifiMacRequest) ProtoReflect added in v0.3.0

func (x *RegisterWifiMacRequest) ProtoReflect() protoreflect.Message

func (*RegisterWifiMacRequest) Reset added in v0.3.0

func (x *RegisterWifiMacRequest) Reset()

func (*RegisterWifiMacRequest) String added in v0.3.0

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 added in v0.4.0

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 added in v0.7.0

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 added in v0.8.0

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 added in v0.8.0

func (*Score) Descriptor() ([]byte, []int)

Deprecated: Use Score.ProtoReflect.Descriptor instead.

func (*Score) GetGrade added in v0.8.0

func (x *Score) GetGrade() string

func (*Score) GetGradePoint added in v0.8.0

func (x *Score) GetGradePoint() int32

func (*Score) GetMax added in v0.8.0

func (x *Score) GetMax() int32

func (*Score) ProtoMessage added in v0.8.0

func (*Score) ProtoMessage()

func (*Score) ProtoReflect added in v0.8.0

func (x *Score) ProtoReflect() protoreflect.Message

func (*Score) Reset added in v0.8.0

func (x *Score) Reset()

func (*Score) String added in v0.8.0

func (x *Score) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Semester.ProtoReflect.Descriptor instead.

func (*Semester) GetName

func (x *Semester) GetName() string

func (*Semester) GetRef

func (x *Semester) GetRef() string

func (*Semester) ProtoMessage

func (*Semester) ProtoMessage()

func (*Semester) ProtoReflect

func (x *Semester) ProtoReflect() protoreflect.Message

func (*Semester) Reset

func (x *Semester) Reset()

func (*Semester) String

func (x *Semester) String() string

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 added in v0.3.0

func (UnimplementedAmizoneServiceServer) FillFacultyFeedback added in v0.6.0

func (UnimplementedAmizoneServiceServer) GetAttendance

func (UnimplementedAmizoneServiceServer) GetClassSchedule

func (UnimplementedAmizoneServiceServer) GetCourses

func (UnimplementedAmizoneServiceServer) GetCurrentCourses

func (UnimplementedAmizoneServiceServer) GetCurrentExamResult added in v0.8.0

func (UnimplementedAmizoneServiceServer) GetExamResult added in v0.8.0

func (UnimplementedAmizoneServiceServer) GetExamSchedule

func (UnimplementedAmizoneServiceServer) GetSemesters

func (UnimplementedAmizoneServiceServer) GetUserProfile added in v0.2.0

func (UnimplementedAmizoneServiceServer) GetWifiMacInfo added in v0.3.0

func (UnimplementedAmizoneServiceServer) RegisterWifiMac added in v0.3.0

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 added in v0.3.0

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 added in v0.3.0

func (*WifiMacInfo) Descriptor() ([]byte, []int)

Deprecated: Use WifiMacInfo.ProtoReflect.Descriptor instead.

func (*WifiMacInfo) GetAddresses added in v0.3.0

func (x *WifiMacInfo) GetAddresses() []string

func (*WifiMacInfo) GetFreeSlots added in v0.3.0

func (x *WifiMacInfo) GetFreeSlots() int32

func (*WifiMacInfo) GetSlots added in v0.3.0

func (x *WifiMacInfo) GetSlots() int32

func (*WifiMacInfo) ProtoMessage added in v0.3.0

func (*WifiMacInfo) ProtoMessage()

func (*WifiMacInfo) ProtoReflect added in v0.3.0

func (x *WifiMacInfo) ProtoReflect() protoreflect.Message

func (*WifiMacInfo) Reset added in v0.3.0

func (x *WifiMacInfo) Reset()

func (*WifiMacInfo) String added in v0.3.0

func (x *WifiMacInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL