Documentation
¶
Overview ¶
Package infostreamv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInfoStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInfoStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoStreamServiceClient) error
- func RegisterInfoStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInfoStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoStreamServiceServer) error
- func RegisterInfoStreamServiceServer(s grpc.ServiceRegistrar, srv InfoStreamServiceServer)
- type CardResp
- type ElectricData
- func (*ElectricData) Descriptor() ([]byte, []int)deprecated
- func (x *ElectricData) GetFee() string
- func (x *ElectricData) GetRoomId() string
- func (x *ElectricData) GetRoomName() string
- func (*ElectricData) ProtoMessage()
- func (x *ElectricData) ProtoReflect() protoreflect.Message
- func (x *ElectricData) Reset()
- func (x *ElectricData) String() string
- type ElectricResp
- func (*ElectricResp) Descriptor() ([]byte, []int)deprecated
- func (x *ElectricResp) GetAvailable() bool
- func (x *ElectricResp) GetData() *ElectricData
- func (*ElectricResp) ProtoMessage()
- func (x *ElectricResp) ProtoReflect() protoreflect.Message
- func (x *ElectricResp) Reset()
- func (x *ElectricResp) String() string
- type ExamData
- func (*ExamData) Descriptor() ([]byte, []int)deprecated
- func (x *ExamData) GetClassroom() string
- func (x *ExamData) GetCourse() string
- func (x *ExamData) GetExamTime() string
- func (x *ExamData) GetExamType() string
- func (x *ExamData) GetSchoolYear() string
- func (x *ExamData) GetSeat() string
- func (x *ExamData) GetSelectCode() string
- func (x *ExamData) GetSemester() string
- func (x *ExamData) GetStaffId() string
- func (*ExamData) ProtoMessage()
- func (x *ExamData) ProtoReflect() protoreflect.Message
- func (x *ExamData) Reset()
- func (x *ExamData) String() string
- type ExamResp
- type GetInfoStreamRequest
- func (*GetInfoStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInfoStreamRequest) GetStaffId() string
- func (*GetInfoStreamRequest) ProtoMessage()
- func (x *GetInfoStreamRequest) ProtoReflect() protoreflect.Message
- func (x *GetInfoStreamRequest) Reset()
- func (x *GetInfoStreamRequest) String() string
- type GetInfoStreamResponse
- func (*GetInfoStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInfoStreamResponse) GetData() *InfoStreamData
- func (x *GetInfoStreamResponse) GetError() int32
- func (x *GetInfoStreamResponse) GetMsg() string
- func (*GetInfoStreamResponse) ProtoMessage()
- func (x *GetInfoStreamResponse) ProtoReflect() protoreflect.Message
- func (x *GetInfoStreamResponse) Reset()
- func (x *GetInfoStreamResponse) String() string
- type InfoStreamData
- func (*InfoStreamData) Descriptor() ([]byte, []int)deprecated
- func (x *InfoStreamData) GetCard() *CardResp
- func (x *InfoStreamData) GetElectric() *ElectricResp
- func (x *InfoStreamData) GetExam() *ExamResp
- func (x *InfoStreamData) GetSchedule() *ScheduleResp
- func (x *InfoStreamData) GetScore() *ScoreResp
- func (x *InfoStreamData) GetSunrun() *SunRunResp
- func (x *InfoStreamData) GetWeather() *WeatherResp
- func (*InfoStreamData) ProtoMessage()
- func (x *InfoStreamData) ProtoReflect() protoreflect.Message
- func (x *InfoStreamData) Reset()
- func (x *InfoStreamData) String() string
- type InfoStreamServiceClient
- type InfoStreamServiceServer
- type ScheduleData
- func (*ScheduleData) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleData) GetClassroom() string
- func (x *ScheduleData) GetCourseName() string
- func (x *ScheduleData) GetDuration() string
- func (x *ScheduleData) GetEndSection() int32
- func (x *ScheduleData) GetEndTime() string
- func (x *ScheduleData) GetStartSection() int32
- func (x *ScheduleData) GetStartTime() string
- func (x *ScheduleData) GetTeacher() string
- func (*ScheduleData) ProtoMessage()
- func (x *ScheduleData) ProtoReflect() protoreflect.Message
- func (x *ScheduleData) Reset()
- func (x *ScheduleData) String() string
- type ScheduleResp
- func (*ScheduleResp) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleResp) GetAvailable() bool
- func (x *ScheduleResp) GetToday() []*ScheduleData
- func (x *ScheduleResp) GetTomorrow() []*ScheduleData
- func (*ScheduleResp) ProtoMessage()
- func (x *ScheduleResp) ProtoReflect() protoreflect.Message
- func (x *ScheduleResp) Reset()
- func (x *ScheduleResp) String() string
- type ScoreData
- func (*ScoreData) Descriptor() ([]byte, []int)deprecated
- func (x *ScoreData) GetCourse() string
- func (x *ScoreData) GetCourseCode() string
- func (x *ScoreData) GetCredit() string
- func (x *ScoreData) GetGPA() string
- func (x *ScoreData) GetSchoolYear() string
- func (x *ScoreData) GetScore() string
- func (x *ScoreData) GetScoreDaily() string
- func (x *ScoreData) GetScoreFinal() string
- func (x *ScoreData) GetScoreMidTerm() string
- func (x *ScoreData) GetScorePractice() string
- func (x *ScoreData) GetScoreSubstitute() string
- func (x *ScoreData) GetSelectCode() string
- func (x *ScoreData) GetSemester() string
- func (x *ScoreData) GetStaffId() string
- func (x *ScoreData) GetStaffName() string
- func (*ScoreData) ProtoMessage()
- func (x *ScoreData) ProtoReflect() protoreflect.Message
- func (x *ScoreData) Reset()
- func (x *ScoreData) String() string
- type ScoreResp
- type SunRunData
- func (*SunRunData) Descriptor() ([]byte, []int)deprecated
- func (x *SunRunData) GetAmMileage() int32
- func (x *SunRunData) GetAmSpeed() float64
- func (x *SunRunData) GetCode() string
- func (x *SunRunData) GetCreatedAt() string
- func (x *SunRunData) GetDataUpdatedAt() string
- func (x *SunRunData) GetDate() string
- func (x *SunRunData) GetDays() int32
- func (x *SunRunData) GetFinalTimes() int32
- func (x *SunRunData) GetName() string
- func (x *SunRunData) GetPmMileage() int32
- func (x *SunRunData) GetPmSpeed() float64
- func (x *SunRunData) GetRand() int32
- func (x *SunRunData) GetSex() string
- func (x *SunRunData) GetSpeed() float64
- func (x *SunRunData) GetTotalMileages() int32
- func (x *SunRunData) GetUpdatedAt() string
- func (x *SunRunData) GetValidMileages() int32
- func (x *SunRunData) GetValidTimes() int32
- func (*SunRunData) ProtoMessage()
- func (x *SunRunData) ProtoReflect() protoreflect.Message
- func (x *SunRunData) Reset()
- func (x *SunRunData) String() string
- type SunRunResp
- type UnimplementedInfoStreamServiceServer
- type UnsafeInfoStreamServiceServer
- type WeatherData
- func (*WeatherData) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherData) GetAqi() int32
- func (x *WeatherData) GetDesc() string
- func (x *WeatherData) GetIsRain() bool
- func (x *WeatherData) GetRainCome() int32
- func (x *WeatherData) GetRainContinue() int32
- func (x *WeatherData) GetSkyconNow() string
- func (x *WeatherData) GetTemperatureMax() float32
- func (x *WeatherData) GetTemperatureMin() float32
- func (x *WeatherData) GetTemperatureNow() float32
- func (x *WeatherData) GetTimestamp() int32
- func (x *WeatherData) GetWillRain() bool
- func (x *WeatherData) GetWillStop() bool
- func (*WeatherData) ProtoMessage()
- func (x *WeatherData) ProtoReflect() protoreflect.Message
- func (x *WeatherData) Reset()
- func (x *WeatherData) String() string
- type WeatherResp
- func (*WeatherResp) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherResp) GetAvailable() bool
- func (x *WeatherResp) GetData() *WeatherData
- func (*WeatherResp) ProtoMessage()
- func (x *WeatherResp) ProtoReflect() protoreflect.Message
- func (x *WeatherResp) Reset()
- func (x *WeatherResp) String() string
Constants ¶
const (
InfoStreamService_GetInfoStream_FullMethodName = "/aggregatingapis.infostream.v1.InfoStreamService/GetInfoStream"
)
Variables ¶
var File_aggregatingapis_infostream_v1_infostream_proto protoreflect.FileDescriptor
var InfoStreamService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aggregatingapis.infostream.v1.InfoStreamService", HandlerType: (*InfoStreamServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInfoStream", Handler: _InfoStreamService_GetInfoStream_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aggregatingapis/infostream/v1/infostream.proto", }
InfoStreamService_ServiceDesc is the grpc.ServiceDesc for InfoStreamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInfoStreamServiceHandler ¶
func RegisterInfoStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInfoStreamServiceHandler registers the http handlers for service InfoStreamService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInfoStreamServiceHandlerClient ¶
func RegisterInfoStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoStreamServiceClient) error
RegisterInfoStreamServiceHandlerClient registers the http handlers for service InfoStreamService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfoStreamServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfoStreamServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InfoStreamServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterInfoStreamServiceHandlerFromEndpoint ¶
func RegisterInfoStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInfoStreamServiceHandlerFromEndpoint is same as RegisterInfoStreamServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInfoStreamServiceHandlerServer ¶
func RegisterInfoStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoStreamServiceServer) error
RegisterInfoStreamServiceHandlerServer registers the http handlers for service InfoStreamService to "mux". UnaryRPC :call InfoStreamServiceServer 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 RegisterInfoStreamServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterInfoStreamServiceServer ¶
func RegisterInfoStreamServiceServer(s grpc.ServiceRegistrar, srv InfoStreamServiceServer)
Types ¶
type CardResp ¶
type CardResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data float32 `protobuf:"fixed32,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CardResp) Descriptor
deprecated
func (*CardResp) GetAvailable ¶
func (*CardResp) ProtoMessage ¶
func (*CardResp) ProtoMessage()
func (*CardResp) ProtoReflect ¶
func (x *CardResp) ProtoReflect() protoreflect.Message
type ElectricData ¶
type ElectricData struct { Fee string `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` RoomId string `protobuf:"bytes,2,opt,name=roomId,proto3" json:"roomId,omitempty"` RoomName string `protobuf:"bytes,3,opt,name=roomName,proto3" json:"roomName,omitempty"` // contains filtered or unexported fields }
func (*ElectricData) Descriptor
deprecated
func (*ElectricData) Descriptor() ([]byte, []int)
Deprecated: Use ElectricData.ProtoReflect.Descriptor instead.
func (*ElectricData) GetFee ¶
func (x *ElectricData) GetFee() string
func (*ElectricData) GetRoomId ¶
func (x *ElectricData) GetRoomId() string
func (*ElectricData) GetRoomName ¶
func (x *ElectricData) GetRoomName() string
func (*ElectricData) ProtoMessage ¶
func (*ElectricData) ProtoMessage()
func (*ElectricData) ProtoReflect ¶
func (x *ElectricData) ProtoReflect() protoreflect.Message
func (*ElectricData) Reset ¶
func (x *ElectricData) Reset()
func (*ElectricData) String ¶
func (x *ElectricData) String() string
type ElectricResp ¶
type ElectricResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data *ElectricData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ElectricResp) Descriptor
deprecated
func (*ElectricResp) Descriptor() ([]byte, []int)
Deprecated: Use ElectricResp.ProtoReflect.Descriptor instead.
func (*ElectricResp) GetAvailable ¶
func (x *ElectricResp) GetAvailable() bool
func (*ElectricResp) GetData ¶
func (x *ElectricResp) GetData() *ElectricData
func (*ElectricResp) ProtoMessage ¶
func (*ElectricResp) ProtoMessage()
func (*ElectricResp) ProtoReflect ¶
func (x *ElectricResp) ProtoReflect() protoreflect.Message
func (*ElectricResp) Reset ¶
func (x *ElectricResp) Reset()
func (*ElectricResp) String ¶
func (x *ElectricResp) String() string
type ExamData ¶
type ExamData struct { Classroom string `protobuf:"bytes,1,opt,name=classroom,proto3" json:"classroom,omitempty"` Course string `protobuf:"bytes,2,opt,name=course,proto3" json:"course,omitempty"` ExamTime string `protobuf:"bytes,3,opt,name=examTime,proto3" json:"examTime,omitempty"` ExamType string `protobuf:"bytes,4,opt,name=examType,proto3" json:"examType,omitempty"` SchoolYear string `protobuf:"bytes,5,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` Seat string `protobuf:"bytes,6,opt,name=seat,proto3" json:"seat,omitempty"` SelectCode string `protobuf:"bytes,7,opt,name=selectCode,proto3" json:"selectCode,omitempty"` Semester string `protobuf:"bytes,8,opt,name=semester,proto3" json:"semester,omitempty"` StaffId string `protobuf:"bytes,9,opt,name=staffId,proto3" json:"staffId,omitempty"` // contains filtered or unexported fields }
func (*ExamData) Descriptor
deprecated
func (*ExamData) GetClassroom ¶
func (*ExamData) GetExamTime ¶
func (*ExamData) GetExamType ¶
func (*ExamData) GetSchoolYear ¶
func (*ExamData) GetSelectCode ¶
func (*ExamData) GetSemester ¶
func (*ExamData) GetStaffId ¶
func (*ExamData) ProtoMessage ¶
func (*ExamData) ProtoMessage()
func (*ExamData) ProtoReflect ¶
func (x *ExamData) ProtoReflect() protoreflect.Message
type ExamResp ¶
type ExamResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data []*ExamData `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ExamResp) Descriptor
deprecated
func (*ExamResp) GetAvailable ¶
func (*ExamResp) ProtoMessage ¶
func (*ExamResp) ProtoMessage()
func (*ExamResp) ProtoReflect ¶
func (x *ExamResp) ProtoReflect() protoreflect.Message
type GetInfoStreamRequest ¶
type GetInfoStreamRequest struct { StaffId string `protobuf:"bytes,1,opt,name=staffId,proto3" json:"staffId,omitempty"` // contains filtered or unexported fields }
func (*GetInfoStreamRequest) Descriptor
deprecated
func (*GetInfoStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoStreamRequest.ProtoReflect.Descriptor instead.
func (*GetInfoStreamRequest) GetStaffId ¶
func (x *GetInfoStreamRequest) GetStaffId() string
func (*GetInfoStreamRequest) ProtoMessage ¶
func (*GetInfoStreamRequest) ProtoMessage()
func (*GetInfoStreamRequest) ProtoReflect ¶
func (x *GetInfoStreamRequest) ProtoReflect() protoreflect.Message
func (*GetInfoStreamRequest) Reset ¶
func (x *GetInfoStreamRequest) Reset()
func (*GetInfoStreamRequest) String ¶
func (x *GetInfoStreamRequest) String() string
type GetInfoStreamResponse ¶
type GetInfoStreamResponse struct { Error int32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *InfoStreamData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetInfoStreamResponse) Descriptor
deprecated
func (*GetInfoStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInfoStreamResponse.ProtoReflect.Descriptor instead.
func (*GetInfoStreamResponse) GetData ¶
func (x *GetInfoStreamResponse) GetData() *InfoStreamData
func (*GetInfoStreamResponse) GetError ¶
func (x *GetInfoStreamResponse) GetError() int32
func (*GetInfoStreamResponse) GetMsg ¶
func (x *GetInfoStreamResponse) GetMsg() string
func (*GetInfoStreamResponse) ProtoMessage ¶
func (*GetInfoStreamResponse) ProtoMessage()
func (*GetInfoStreamResponse) ProtoReflect ¶
func (x *GetInfoStreamResponse) ProtoReflect() protoreflect.Message
func (*GetInfoStreamResponse) Reset ¶
func (x *GetInfoStreamResponse) Reset()
func (*GetInfoStreamResponse) String ¶
func (x *GetInfoStreamResponse) String() string
type InfoStreamData ¶
type InfoStreamData struct { Weather *WeatherResp `protobuf:"bytes,1,opt,name=weather,proto3" json:"weather,omitempty"` Schedule *ScheduleResp `protobuf:"bytes,2,opt,name=schedule,proto3" json:"schedule,omitempty"` Exam *ExamResp `protobuf:"bytes,3,opt,name=exam,proto3" json:"exam,omitempty"` Score *ScoreResp `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"` Sunrun *SunRunResp `protobuf:"bytes,5,opt,name=sunrun,proto3" json:"sunrun,omitempty"` Card *CardResp `protobuf:"bytes,6,opt,name=card,proto3" json:"card,omitempty"` Electric *ElectricResp `protobuf:"bytes,7,opt,name=electric,proto3" json:"electric,omitempty"` // contains filtered or unexported fields }
func (*InfoStreamData) Descriptor
deprecated
func (*InfoStreamData) Descriptor() ([]byte, []int)
Deprecated: Use InfoStreamData.ProtoReflect.Descriptor instead.
func (*InfoStreamData) GetCard ¶
func (x *InfoStreamData) GetCard() *CardResp
func (*InfoStreamData) GetElectric ¶
func (x *InfoStreamData) GetElectric() *ElectricResp
func (*InfoStreamData) GetExam ¶
func (x *InfoStreamData) GetExam() *ExamResp
func (*InfoStreamData) GetSchedule ¶
func (x *InfoStreamData) GetSchedule() *ScheduleResp
func (*InfoStreamData) GetScore ¶
func (x *InfoStreamData) GetScore() *ScoreResp
func (*InfoStreamData) GetSunrun ¶
func (x *InfoStreamData) GetSunrun() *SunRunResp
func (*InfoStreamData) GetWeather ¶
func (x *InfoStreamData) GetWeather() *WeatherResp
func (*InfoStreamData) ProtoMessage ¶
func (*InfoStreamData) ProtoMessage()
func (*InfoStreamData) ProtoReflect ¶
func (x *InfoStreamData) ProtoReflect() protoreflect.Message
func (*InfoStreamData) Reset ¶
func (x *InfoStreamData) Reset()
func (*InfoStreamData) String ¶
func (x *InfoStreamData) String() string
type InfoStreamServiceClient ¶
type InfoStreamServiceClient interface {
GetInfoStream(ctx context.Context, in *GetInfoStreamRequest, opts ...grpc.CallOption) (*GetInfoStreamResponse, error)
}
InfoStreamServiceClient is the client API for InfoStreamService 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 NewInfoStreamServiceClient ¶
func NewInfoStreamServiceClient(cc grpc.ClientConnInterface) InfoStreamServiceClient
type InfoStreamServiceServer ¶
type InfoStreamServiceServer interface { GetInfoStream(context.Context, *GetInfoStreamRequest) (*GetInfoStreamResponse, error) // contains filtered or unexported methods }
InfoStreamServiceServer is the server API for InfoStreamService service. All implementations must embed UnimplementedInfoStreamServiceServer for forward compatibility.
type ScheduleData ¶
type ScheduleData struct { StartSection int32 `protobuf:"varint,1,opt,name=startSection,proto3" json:"startSection,omitempty"` EndSection int32 `protobuf:"varint,2,opt,name=endSection,proto3" json:"endSection,omitempty"` StartTime string `protobuf:"bytes,3,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,4,opt,name=endTime,proto3" json:"endTime,omitempty"` CourseName string `protobuf:"bytes,5,opt,name=courseName,proto3" json:"courseName,omitempty"` Classroom string `protobuf:"bytes,6,opt,name=classroom,proto3" json:"classroom,omitempty"` Teacher string `protobuf:"bytes,7,opt,name=teacher,proto3" json:"teacher,omitempty"` Duration string `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*ScheduleData) Descriptor
deprecated
func (*ScheduleData) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleData.ProtoReflect.Descriptor instead.
func (*ScheduleData) GetClassroom ¶
func (x *ScheduleData) GetClassroom() string
func (*ScheduleData) GetCourseName ¶
func (x *ScheduleData) GetCourseName() string
func (*ScheduleData) GetDuration ¶
func (x *ScheduleData) GetDuration() string
func (*ScheduleData) GetEndSection ¶
func (x *ScheduleData) GetEndSection() int32
func (*ScheduleData) GetEndTime ¶
func (x *ScheduleData) GetEndTime() string
func (*ScheduleData) GetStartSection ¶
func (x *ScheduleData) GetStartSection() int32
func (*ScheduleData) GetStartTime ¶
func (x *ScheduleData) GetStartTime() string
func (*ScheduleData) GetTeacher ¶
func (x *ScheduleData) GetTeacher() string
func (*ScheduleData) ProtoMessage ¶
func (*ScheduleData) ProtoMessage()
func (*ScheduleData) ProtoReflect ¶
func (x *ScheduleData) ProtoReflect() protoreflect.Message
func (*ScheduleData) Reset ¶
func (x *ScheduleData) Reset()
func (*ScheduleData) String ¶
func (x *ScheduleData) String() string
type ScheduleResp ¶
type ScheduleResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Today []*ScheduleData `protobuf:"bytes,2,rep,name=today,proto3" json:"today,omitempty"` Tomorrow []*ScheduleData `protobuf:"bytes,3,rep,name=tomorrow,proto3" json:"tomorrow,omitempty"` // contains filtered or unexported fields }
func (*ScheduleResp) Descriptor
deprecated
func (*ScheduleResp) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleResp.ProtoReflect.Descriptor instead.
func (*ScheduleResp) GetAvailable ¶
func (x *ScheduleResp) GetAvailable() bool
func (*ScheduleResp) GetToday ¶
func (x *ScheduleResp) GetToday() []*ScheduleData
func (*ScheduleResp) GetTomorrow ¶
func (x *ScheduleResp) GetTomorrow() []*ScheduleData
func (*ScheduleResp) ProtoMessage ¶
func (*ScheduleResp) ProtoMessage()
func (*ScheduleResp) ProtoReflect ¶
func (x *ScheduleResp) ProtoReflect() protoreflect.Message
func (*ScheduleResp) Reset ¶
func (x *ScheduleResp) Reset()
func (*ScheduleResp) String ¶
func (x *ScheduleResp) String() string
type ScoreData ¶
type ScoreData struct { // 学年 SchoolYear string `protobuf:"bytes,1,opt,name=schoolYear,proto3" json:"schoolYear,omitempty"` // 学期 Semester string `protobuf:"bytes,2,opt,name=semester,proto3" json:"semester,omitempty"` // 选课号 SelectCode string `protobuf:"bytes,3,opt,name=selectCode,proto3" json:"selectCode,omitempty"` // 最后分数 Score string `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"` // 平时分 ScoreDaily string `protobuf:"bytes,5,opt,name=scoreDaily,proto3" json:"scoreDaily,omitempty"` // 期中分数 ScoreMidTerm string `protobuf:"bytes,6,opt,name=scoreMidTerm,proto3" json:"scoreMidTerm,omitempty"` // 期末分数 ScoreFinal string `protobuf:"bytes,7,opt,name=scoreFinal,proto3" json:"scoreFinal,omitempty"` // 补考分数 ScoreSubstitute string `protobuf:"bytes,8,opt,name=scoreSubstitute,proto3" json:"scoreSubstitute,omitempty"` // 实验分数 ScorePractice string `protobuf:"bytes,9,opt,name=scorePractice,proto3" json:"scorePractice,omitempty"` // 课程号 CourseCode string `protobuf:"bytes,10,opt,name=courseCode,proto3" json:"courseCode,omitempty"` // 课程名 Course string `protobuf:"bytes,11,opt,name=course,proto3" json:"course,omitempty"` // 学号 StaffId string `protobuf:"bytes,12,opt,name=staffId,proto3" json:"staffId,omitempty"` // 姓名 StaffName string `protobuf:"bytes,13,opt,name=staffName,proto3" json:"staffName,omitempty"` // 学分 Credit string `protobuf:"bytes,14,opt,name=credit,proto3" json:"credit,omitempty"` // GPA GPA string `protobuf:"bytes,15,opt,name=GPA,proto3" json:"GPA,omitempty"` // contains filtered or unexported fields }
func (*ScoreData) Descriptor
deprecated
func (*ScoreData) GetCourseCode ¶
func (*ScoreData) GetSchoolYear ¶
func (*ScoreData) GetScoreDaily ¶
func (*ScoreData) GetScoreFinal ¶
func (*ScoreData) GetScoreMidTerm ¶
func (*ScoreData) GetScorePractice ¶
func (*ScoreData) GetScoreSubstitute ¶
func (*ScoreData) GetSelectCode ¶
func (*ScoreData) GetSemester ¶
func (*ScoreData) GetStaffId ¶
func (*ScoreData) GetStaffName ¶
func (*ScoreData) ProtoMessage ¶
func (*ScoreData) ProtoMessage()
func (*ScoreData) ProtoReflect ¶
func (x *ScoreData) ProtoReflect() protoreflect.Message
type ScoreResp ¶
type ScoreResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data []*ScoreData `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ScoreResp) Descriptor
deprecated
func (*ScoreResp) GetAvailable ¶
func (*ScoreResp) ProtoMessage ¶
func (*ScoreResp) ProtoMessage()
func (*ScoreResp) ProtoReflect ¶
func (x *ScoreResp) ProtoReflect() protoreflect.Message
type SunRunData ¶
type SunRunData struct { AmMileage int32 `protobuf:"varint,1,opt,name=amMileage,proto3" json:"amMileage,omitempty"` AmSpeed float64 `protobuf:"fixed64,2,opt,name=amSpeed,proto3" json:"amSpeed,omitempty"` CreatedAt string `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` DataUpdatedAt string `protobuf:"bytes,4,opt,name=dataUpdatedAt,proto3" json:"dataUpdatedAt,omitempty"` Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"` Days int32 `protobuf:"varint,6,opt,name=days,proto3" json:"days,omitempty"` FinalTimes int32 `protobuf:"varint,7,opt,name=finalTimes,proto3" json:"finalTimes,omitempty"` Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` PmMileage int32 `protobuf:"varint,9,opt,name=pmMileage,proto3" json:"pmMileage,omitempty"` PmSpeed float64 `protobuf:"fixed64,10,opt,name=pmSpeed,proto3" json:"pmSpeed,omitempty"` Rand int32 `protobuf:"varint,11,opt,name=rand,proto3" json:"rand,omitempty"` Sex string `protobuf:"bytes,12,opt,name=sex,proto3" json:"sex,omitempty"` Speed float64 `protobuf:"fixed64,13,opt,name=speed,proto3" json:"speed,omitempty"` TotalMileages int32 `protobuf:"varint,14,opt,name=totalMileages,proto3" json:"totalMileages,omitempty"` UpdatedAt string `protobuf:"bytes,15,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` ValidMileages int32 `protobuf:"varint,16,opt,name=validMileages,proto3" json:"validMileages,omitempty"` ValidTimes int32 `protobuf:"varint,17,opt,name=validTimes,proto3" json:"validTimes,omitempty"` Code string `protobuf:"bytes,18,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SunRunData) Descriptor
deprecated
func (*SunRunData) Descriptor() ([]byte, []int)
Deprecated: Use SunRunData.ProtoReflect.Descriptor instead.
func (*SunRunData) GetAmMileage ¶
func (x *SunRunData) GetAmMileage() int32
func (*SunRunData) GetAmSpeed ¶
func (x *SunRunData) GetAmSpeed() float64
func (*SunRunData) GetCode ¶
func (x *SunRunData) GetCode() string
func (*SunRunData) GetCreatedAt ¶
func (x *SunRunData) GetCreatedAt() string
func (*SunRunData) GetDataUpdatedAt ¶
func (x *SunRunData) GetDataUpdatedAt() string
func (*SunRunData) GetDate ¶
func (x *SunRunData) GetDate() string
func (*SunRunData) GetDays ¶
func (x *SunRunData) GetDays() int32
func (*SunRunData) GetFinalTimes ¶
func (x *SunRunData) GetFinalTimes() int32
func (*SunRunData) GetName ¶
func (x *SunRunData) GetName() string
func (*SunRunData) GetPmMileage ¶
func (x *SunRunData) GetPmMileage() int32
func (*SunRunData) GetPmSpeed ¶
func (x *SunRunData) GetPmSpeed() float64
func (*SunRunData) GetRand ¶
func (x *SunRunData) GetRand() int32
func (*SunRunData) GetSex ¶
func (x *SunRunData) GetSex() string
func (*SunRunData) GetSpeed ¶
func (x *SunRunData) GetSpeed() float64
func (*SunRunData) GetTotalMileages ¶
func (x *SunRunData) GetTotalMileages() int32
func (*SunRunData) GetUpdatedAt ¶
func (x *SunRunData) GetUpdatedAt() string
func (*SunRunData) GetValidMileages ¶
func (x *SunRunData) GetValidMileages() int32
func (*SunRunData) GetValidTimes ¶
func (x *SunRunData) GetValidTimes() int32
func (*SunRunData) ProtoMessage ¶
func (*SunRunData) ProtoMessage()
func (*SunRunData) ProtoReflect ¶
func (x *SunRunData) ProtoReflect() protoreflect.Message
func (*SunRunData) Reset ¶
func (x *SunRunData) Reset()
func (*SunRunData) String ¶
func (x *SunRunData) String() string
type SunRunResp ¶
type SunRunResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data *SunRunData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SunRunResp) Descriptor
deprecated
func (*SunRunResp) Descriptor() ([]byte, []int)
Deprecated: Use SunRunResp.ProtoReflect.Descriptor instead.
func (*SunRunResp) GetAvailable ¶
func (x *SunRunResp) GetAvailable() bool
func (*SunRunResp) GetData ¶
func (x *SunRunResp) GetData() *SunRunData
func (*SunRunResp) ProtoMessage ¶
func (*SunRunResp) ProtoMessage()
func (*SunRunResp) ProtoReflect ¶
func (x *SunRunResp) ProtoReflect() protoreflect.Message
func (*SunRunResp) Reset ¶
func (x *SunRunResp) Reset()
func (*SunRunResp) String ¶
func (x *SunRunResp) String() string
type UnimplementedInfoStreamServiceServer ¶
type UnimplementedInfoStreamServiceServer struct{}
UnimplementedInfoStreamServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedInfoStreamServiceServer) GetInfoStream ¶
func (UnimplementedInfoStreamServiceServer) GetInfoStream(context.Context, *GetInfoStreamRequest) (*GetInfoStreamResponse, error)
type UnsafeInfoStreamServiceServer ¶
type UnsafeInfoStreamServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInfoStreamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfoStreamServiceServer will result in compilation errors.
type WeatherData ¶
type WeatherData struct { Aqi int32 `protobuf:"varint,1,opt,name=aqi,proto3" json:"aqi,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` SkyconNow string `protobuf:"bytes,3,opt,name=skyconNow,proto3" json:"skyconNow,omitempty"` IsRain bool `protobuf:"varint,4,opt,name=isRain,proto3" json:"isRain,omitempty"` WillStop bool `protobuf:"varint,5,opt,name=willStop,proto3" json:"willStop,omitempty"` WillRain bool `protobuf:"varint,6,opt,name=willRain,proto3" json:"willRain,omitempty"` RainContinue int32 `protobuf:"varint,7,opt,name=RainContinue,proto3" json:"RainContinue,omitempty"` RainCome int32 `protobuf:"varint,8,opt,name=RainCome,proto3" json:"RainCome,omitempty"` TemperatureMax float32 `protobuf:"fixed32,9,opt,name=temperatureMax,proto3" json:"temperatureMax,omitempty"` TemperatureMin float32 `protobuf:"fixed32,10,opt,name=temperatureMin,proto3" json:"temperatureMin,omitempty"` TemperatureNow float32 `protobuf:"fixed32,11,opt,name=temperatureNow,proto3" json:"temperatureNow,omitempty"` Timestamp int32 `protobuf:"varint,12,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*WeatherData) Descriptor
deprecated
func (*WeatherData) Descriptor() ([]byte, []int)
Deprecated: Use WeatherData.ProtoReflect.Descriptor instead.
func (*WeatherData) GetAqi ¶
func (x *WeatherData) GetAqi() int32
func (*WeatherData) GetDesc ¶
func (x *WeatherData) GetDesc() string
func (*WeatherData) GetIsRain ¶
func (x *WeatherData) GetIsRain() bool
func (*WeatherData) GetRainCome ¶
func (x *WeatherData) GetRainCome() int32
func (*WeatherData) GetRainContinue ¶
func (x *WeatherData) GetRainContinue() int32
func (*WeatherData) GetSkyconNow ¶
func (x *WeatherData) GetSkyconNow() string
func (*WeatherData) GetTemperatureMax ¶
func (x *WeatherData) GetTemperatureMax() float32
func (*WeatherData) GetTemperatureMin ¶
func (x *WeatherData) GetTemperatureMin() float32
func (*WeatherData) GetTemperatureNow ¶
func (x *WeatherData) GetTemperatureNow() float32
func (*WeatherData) GetTimestamp ¶
func (x *WeatherData) GetTimestamp() int32
func (*WeatherData) GetWillRain ¶
func (x *WeatherData) GetWillRain() bool
func (*WeatherData) GetWillStop ¶
func (x *WeatherData) GetWillStop() bool
func (*WeatherData) ProtoMessage ¶
func (*WeatherData) ProtoMessage()
func (*WeatherData) ProtoReflect ¶
func (x *WeatherData) ProtoReflect() protoreflect.Message
func (*WeatherData) Reset ¶
func (x *WeatherData) Reset()
func (*WeatherData) String ¶
func (x *WeatherData) String() string
type WeatherResp ¶
type WeatherResp struct { Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Data *WeatherData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WeatherResp) Descriptor
deprecated
func (*WeatherResp) Descriptor() ([]byte, []int)
Deprecated: Use WeatherResp.ProtoReflect.Descriptor instead.
func (*WeatherResp) GetAvailable ¶
func (x *WeatherResp) GetAvailable() bool
func (*WeatherResp) GetData ¶
func (x *WeatherResp) GetData() *WeatherData
func (*WeatherResp) ProtoMessage ¶
func (*WeatherResp) ProtoMessage()
func (*WeatherResp) ProtoReflect ¶
func (x *WeatherResp) ProtoReflect() protoreflect.Message
func (*WeatherResp) Reset ¶
func (x *WeatherResp) Reset()
func (*WeatherResp) String ¶
func (x *WeatherResp) String() string