Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2025 Changes in this version + const ClassService_AddClass_FullMethodName + const ClassService_SearchClass_FullMethodName + const OperationClassServiceAddClass + const OperationClassServiceSearchClass + var ClassService_ServiceDesc = grpc.ServiceDesc + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_classService_v1_classService_proto protoreflect.FileDescriptor + var File_classService_v1_error_reason_proto protoreflect.FileDescriptor + func ErrorEsAddClassFailed(format string, args ...interface{}) *errors.Error + func ErrorEsSearchClassFailed(format string, args ...interface{}) *errors.Error + func IsEsAddClassFailed(err error) bool + func IsEsSearchClassFailed(err error) bool + func RegisterClassServiceHTTPServer(s *http.Server, srv ClassServiceHTTPServer) + func RegisterClassServiceServer(s grpc.ServiceRegistrar, srv ClassServiceServer) + type AddClassReply struct + Id string + Msg string + func (*AddClassReply) Descriptor() ([]byte, []int) + func (*AddClassReply) ProtoMessage() + func (m *AddClassReply) Validate() error + func (m *AddClassReply) ValidateAll() error + func (x *AddClassReply) GetId() string + func (x *AddClassReply) GetMsg() string + func (x *AddClassReply) ProtoReflect() protoreflect.Message + func (x *AddClassReply) Reset() + func (x *AddClassReply) String() string + type AddClassReplyMultiError []error + func (m AddClassReplyMultiError) AllErrors() []error + func (m AddClassReplyMultiError) Error() string + type AddClassReplyValidationError struct + func (e AddClassReplyValidationError) Cause() error + func (e AddClassReplyValidationError) Error() string + func (e AddClassReplyValidationError) ErrorName() string + func (e AddClassReplyValidationError) Field() string + func (e AddClassReplyValidationError) Key() bool + func (e AddClassReplyValidationError) Reason() string + type AddClassRequest struct + Credit *float64 + Day int64 + DurClass string + Name string + Semester string + StuId string + Teacher string + Weeks int64 + Where string + Year string + func (*AddClassRequest) Descriptor() ([]byte, []int) + func (*AddClassRequest) ProtoMessage() + func (m *AddClassRequest) Validate() error + func (m *AddClassRequest) ValidateAll() error + func (x *AddClassRequest) GetCredit() float64 + func (x *AddClassRequest) GetDay() int64 + func (x *AddClassRequest) GetDurClass() string + func (x *AddClassRequest) GetName() string + func (x *AddClassRequest) GetSemester() string + func (x *AddClassRequest) GetStuId() string + func (x *AddClassRequest) GetTeacher() string + func (x *AddClassRequest) GetWeeks() int64 + func (x *AddClassRequest) GetWhere() string + func (x *AddClassRequest) GetYear() string + func (x *AddClassRequest) ProtoReflect() protoreflect.Message + func (x *AddClassRequest) Reset() + func (x *AddClassRequest) String() string + type AddClassRequestMultiError []error + func (m AddClassRequestMultiError) AllErrors() []error + func (m AddClassRequestMultiError) Error() string + type AddClassRequestValidationError struct + func (e AddClassRequestValidationError) Cause() error + func (e AddClassRequestValidationError) Error() string + func (e AddClassRequestValidationError) ErrorName() string + func (e AddClassRequestValidationError) Field() string + func (e AddClassRequestValidationError) Key() bool + func (e AddClassRequestValidationError) Reason() string + type ClassInfo struct + ClassWhen string + Classname string + Credit float64 + Day int64 + Id string + Semester string + Teacher string + WeekDuration string + Weeks int64 + Where string + Year string + func (*ClassInfo) Descriptor() ([]byte, []int) + func (*ClassInfo) ProtoMessage() + func (m *ClassInfo) Validate() error + func (m *ClassInfo) ValidateAll() error + func (x *ClassInfo) GetClassWhen() string + func (x *ClassInfo) GetClassname() string + func (x *ClassInfo) GetCredit() float64 + func (x *ClassInfo) GetDay() int64 + func (x *ClassInfo) GetId() string + func (x *ClassInfo) GetSemester() string + func (x *ClassInfo) GetTeacher() string + func (x *ClassInfo) GetWeekDuration() string + func (x *ClassInfo) GetWeeks() int64 + func (x *ClassInfo) GetWhere() string + func (x *ClassInfo) GetYear() string + func (x *ClassInfo) ProtoReflect() protoreflect.Message + func (x *ClassInfo) Reset() + func (x *ClassInfo) String() string + type ClassInfoMultiError []error + func (m ClassInfoMultiError) AllErrors() []error + func (m ClassInfoMultiError) Error() string + type ClassInfoValidationError struct + func (e ClassInfoValidationError) Cause() error + func (e ClassInfoValidationError) Error() string + func (e ClassInfoValidationError) ErrorName() string + func (e ClassInfoValidationError) Field() string + func (e ClassInfoValidationError) Key() bool + func (e ClassInfoValidationError) Reason() string + type ClassServiceClient interface + AddClass func(ctx context.Context, in *AddClassRequest, opts ...grpc.CallOption) (*AddClassReply, error) + SearchClass func(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error) + func NewClassServiceClient(cc grpc.ClientConnInterface) ClassServiceClient + type ClassServiceHTTPClient interface + AddClass func(ctx context.Context, req *AddClassRequest, opts ...http.CallOption) (rsp *AddClassReply, err error) + SearchClass func(ctx context.Context, req *SearchRequest, opts ...http.CallOption) (rsp *SearchReply, err error) + func NewClassServiceHTTPClient(client *http.Client) ClassServiceHTTPClient + type ClassServiceHTTPClientImpl struct + func (c *ClassServiceHTTPClientImpl) AddClass(ctx context.Context, in *AddClassRequest, opts ...http.CallOption) (*AddClassReply, error) + func (c *ClassServiceHTTPClientImpl) SearchClass(ctx context.Context, in *SearchRequest, opts ...http.CallOption) (*SearchReply, error) + type ClassServiceHTTPServer interface + AddClass func(context.Context, *AddClassRequest) (*AddClassReply, error) + SearchClass func(context.Context, *SearchRequest) (*SearchReply, error) + type ClassServiceServer interface + AddClass func(context.Context, *AddClassRequest) (*AddClassReply, error) + SearchClass func(context.Context, *SearchRequest) (*SearchReply, error) + type ErrorReason int32 + const ErrorReason_ES_AddClassFailed + const ErrorReason_ES_SearchClassFailed + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type SearchReply struct + ClassInfos []*ClassInfo + func (*SearchReply) Descriptor() ([]byte, []int) + func (*SearchReply) ProtoMessage() + func (m *SearchReply) Validate() error + func (m *SearchReply) ValidateAll() error + func (x *SearchReply) GetClassInfos() []*ClassInfo + func (x *SearchReply) ProtoReflect() protoreflect.Message + func (x *SearchReply) Reset() + func (x *SearchReply) String() string + type SearchReplyMultiError []error + func (m SearchReplyMultiError) AllErrors() []error + func (m SearchReplyMultiError) Error() string + type SearchReplyValidationError struct + func (e SearchReplyValidationError) Cause() error + func (e SearchReplyValidationError) Error() string + func (e SearchReplyValidationError) ErrorName() string + func (e SearchReplyValidationError) Field() string + func (e SearchReplyValidationError) Key() bool + func (e SearchReplyValidationError) Reason() string + type SearchRequest struct + SearchKeyWords string + Semester string + Year string + func (*SearchRequest) Descriptor() ([]byte, []int) + func (*SearchRequest) ProtoMessage() + func (m *SearchRequest) Validate() error + func (m *SearchRequest) ValidateAll() error + func (x *SearchRequest) GetSearchKeyWords() string + func (x *SearchRequest) GetSemester() string + func (x *SearchRequest) GetYear() string + func (x *SearchRequest) ProtoReflect() protoreflect.Message + func (x *SearchRequest) Reset() + func (x *SearchRequest) String() string + type SearchRequestMultiError []error + func (m SearchRequestMultiError) AllErrors() []error + func (m SearchRequestMultiError) Error() string + type SearchRequestValidationError struct + func (e SearchRequestValidationError) Cause() error + func (e SearchRequestValidationError) Error() string + func (e SearchRequestValidationError) ErrorName() string + func (e SearchRequestValidationError) Field() string + func (e SearchRequestValidationError) Key() bool + func (e SearchRequestValidationError) Reason() string + type UnimplementedClassServiceServer struct + func (UnimplementedClassServiceServer) AddClass(context.Context, *AddClassRequest) (*AddClassReply, error) + func (UnimplementedClassServiceServer) SearchClass(context.Context, *SearchRequest) (*SearchReply, error) + type UnsafeClassServiceServer interface