Documentation ¶
Overview ¶
Package webappapi is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterWebappServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWebappServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebappServiceClient) error
- func RegisterWebappServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWebappServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebappServiceServer) error
- func RegisterWebappServiceServer(s grpc.ServiceRegistrar, srv WebappServiceServer)
- type AlarmRec
- func (*AlarmRec) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRec) GetAlarmId() int32
- func (x *AlarmRec) GetAudioEn() bool
- func (x *AlarmRec) GetEndTime() uint64
- func (x *AlarmRec) GetId() int32
- func (x *AlarmRec) GetIsConfirmed() bool
- func (x *AlarmRec) GetIsEnd() bool
- func (x *AlarmRec) GetLastTime() uint64
- func (x *AlarmRec) GetPos() string
- func (x *AlarmRec) GetStartTime() uint64
- func (x *AlarmRec) GetTitle() string
- func (*AlarmRec) ProtoMessage()
- func (x *AlarmRec) ProtoReflect() protoreflect.Message
- func (x *AlarmRec) Reset()
- func (x *AlarmRec) String() string
- type AlarmSetArray
- type AlarmSetMessage
- func (*AlarmSetMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSetMessage) GetAlarmGate() float32
- func (x *AlarmSetMessage) GetAlarmType() uint32
- func (x *AlarmSetMessage) GetAudioEn() bool
- func (x *AlarmSetMessage) GetCollectorCh() uint32
- func (x *AlarmSetMessage) GetCollectorId() uint32
- func (x *AlarmSetMessage) GetCollectorPos() string
- func (x *AlarmSetMessage) GetDelayCount() uint32
- func (x *AlarmSetMessage) GetEnable() bool
- func (x *AlarmSetMessage) GetId() uint32
- func (x *AlarmSetMessage) GetPosition() string
- func (x *AlarmSetMessage) GetTimeTabId() uint32
- func (x *AlarmSetMessage) GetTimeTabTitle() string
- func (x *AlarmSetMessage) GetTitle() string
- func (x *AlarmSetMessage) GetTtsFile() string
- func (*AlarmSetMessage) ProtoMessage()
- func (x *AlarmSetMessage) ProtoReflect() protoreflect.Message
- func (x *AlarmSetMessage) Reset()
- func (x *AlarmSetMessage) String() string
- type ChangePassMessage
- func (*ChangePassMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePassMessage) GetNewpass() string
- func (x *ChangePassMessage) GetUsername() string
- func (*ChangePassMessage) ProtoMessage()
- func (x *ChangePassMessage) ProtoReflect() protoreflect.Message
- func (x *ChangePassMessage) Reset()
- func (x *ChangePassMessage) String() string
- type CollectorArray
- type CollectorMessage
- func (*CollectorMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CollectorMessage) GetId() uint32
- func (x *CollectorMessage) GetIp() string
- func (x *CollectorMessage) GetIsConnected() bool
- func (x *CollectorMessage) GetLocalPort() uint32
- func (x *CollectorMessage) GetPort() uint32
- func (x *CollectorMessage) GetPos() string
- func (*CollectorMessage) ProtoMessage()
- func (x *CollectorMessage) ProtoReflect() protoreflect.Message
- func (x *CollectorMessage) Reset()
- func (x *CollectorMessage) String() string
- type CollectorStatusMessage
- func (*CollectorStatusMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CollectorStatusMessage) GetAdc() []float32
- func (x *CollectorStatusMessage) GetDi() []bool
- func (x *CollectorStatusMessage) GetDo() []bool
- func (x *CollectorStatusMessage) GetIsConnected() bool
- func (x *CollectorStatusMessage) GetPos() string
- func (*CollectorStatusMessage) ProtoMessage()
- func (x *CollectorStatusMessage) ProtoReflect() protoreflect.Message
- func (x *CollectorStatusMessage) Reset()
- func (x *CollectorStatusMessage) String() string
- type EmptyMessage
- type LoginReqMessage
- func (*LoginReqMessage) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReqMessage) GetPasswdmd5() string
- func (x *LoginReqMessage) GetUsername() string
- func (*LoginReqMessage) ProtoMessage()
- func (x *LoginReqMessage) ProtoReflect() protoreflect.Message
- func (x *LoginReqMessage) Reset()
- func (x *LoginReqMessage) String() string
- type LoginRespMessage
- type QueryAlarmRecMessage
- func (*QueryAlarmRecMessage) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAlarmRecMessage) GetFromTime() uint64
- func (x *QueryAlarmRecMessage) GetPgIndex() uint32
- func (x *QueryAlarmRecMessage) GetPgSize() uint32
- func (x *QueryAlarmRecMessage) GetToTime() uint64
- func (*QueryAlarmRecMessage) ProtoMessage()
- func (x *QueryAlarmRecMessage) ProtoReflect() protoreflect.Message
- func (x *QueryAlarmRecMessage) Reset()
- func (x *QueryAlarmRecMessage) String() string
- type RecIdArray
- type RecIdMessage
- type RspAlarmRecMessage
- func (*RspAlarmRecMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RspAlarmRecMessage) GetAlarms() []*AlarmRec
- func (x *RspAlarmRecMessage) GetPgCount() uint32
- func (x *RspAlarmRecMessage) GetTotalCount() uint32
- func (*RspAlarmRecMessage) ProtoMessage()
- func (x *RspAlarmRecMessage) ProtoReflect() protoreflect.Message
- func (x *RspAlarmRecMessage) Reset()
- func (x *RspAlarmRecMessage) String() string
- type RspAlarmRecStreamMessage
- func (*RspAlarmRecStreamMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RspAlarmRecStreamMessage) GetAlarmRecMsg() *RspAlarmRecMessage
- func (x *RspAlarmRecStreamMessage) GetType() uint32
- func (*RspAlarmRecStreamMessage) ProtoMessage()
- func (x *RspAlarmRecStreamMessage) ProtoReflect() protoreflect.Message
- func (x *RspAlarmRecStreamMessage) Reset()
- func (x *RspAlarmRecStreamMessage) String() string
- type RspUpgradeMessage
- func (*RspUpgradeMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RspUpgradeMessage) GetErr() string
- func (x *RspUpgradeMessage) GetFsize() uint64
- func (x *RspUpgradeMessage) GetStatus() uint32
- func (x *RspUpgradeMessage) GetWsize() uint64
- func (*RspUpgradeMessage) ProtoMessage()
- func (x *RspUpgradeMessage) ProtoReflect() protoreflect.Message
- func (x *RspUpgradeMessage) Reset()
- func (x *RspUpgradeMessage) String() string
- type StringMessage
- type TimeTabMessage
- func (*TimeTabMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TimeTabMessage) GetFri() string
- func (x *TimeTabMessage) GetId() uint32
- func (x *TimeTabMessage) GetMon() string
- func (x *TimeTabMessage) GetSat() string
- func (x *TimeTabMessage) GetSun() string
- func (x *TimeTabMessage) GetThur() string
- func (x *TimeTabMessage) GetTitle() string
- func (x *TimeTabMessage) GetTues() string
- func (x *TimeTabMessage) GetWed() string
- func (*TimeTabMessage) ProtoMessage()
- func (x *TimeTabMessage) ProtoReflect() protoreflect.Message
- func (x *TimeTabMessage) Reset()
- func (x *TimeTabMessage) String() string
- type TimeTabsArray
- type UnimplementedWebappServiceServer
- func (UnimplementedWebappServiceServer) AddAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) AddCollector(context.Context, *CollectorMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) AddTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) ChangePwd(context.Context, *ChangePassMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) ConfirmAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) ControllerRestarted(context.Context, *EmptyMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) DelAlarmSet(context.Context, *RecIdMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) DelAlarms(context.Context, *RecIdArray) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) DelCollector(context.Context, *RecIdMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) DelTimeTab(context.Context, *RecIdMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) Echo(context.Context, *StringMessage) (*StringMessage, error)
- func (UnimplementedWebappServiceServer) EndAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) GetAlarmSet(context.Context, *RecIdMessage) (*AlarmSetMessage, error)
- func (UnimplementedWebappServiceServer) GetAlarmStream(*EmptyMessage, WebappService_GetAlarmStreamServer) error
- func (UnimplementedWebappServiceServer) GetAllAlarmSet(context.Context, *EmptyMessage) (*AlarmSetArray, error)
- func (UnimplementedWebappServiceServer) GetAllCollector(context.Context, *EmptyMessage) (*CollectorArray, error)
- func (UnimplementedWebappServiceServer) GetAllTimeTab(context.Context, *EmptyMessage) (*TimeTabsArray, error)
- func (UnimplementedWebappServiceServer) GetCollector(context.Context, *RecIdMessage) (*CollectorMessage, error)
- func (UnimplementedWebappServiceServer) GetCollectorStatus(context.Context, *RecIdMessage) (*CollectorStatusMessage, error)
- func (UnimplementedWebappServiceServer) GetCurAlarmRec(context.Context, *EmptyMessage) (*RspAlarmRecMessage, error)
- func (UnimplementedWebappServiceServer) GetTimeTab(context.Context, *RecIdMessage) (*TimeTabMessage, error)
- func (UnimplementedWebappServiceServer) GetVersion(context.Context, *EmptyMessage) (*StringMessage, error)
- func (UnimplementedWebappServiceServer) GetVersion2(context.Context, *EmptyMessage) (*VerMessage, error)
- func (UnimplementedWebappServiceServer) Login(context.Context, *LoginReqMessage) (*LoginRespMessage, error)
- func (UnimplementedWebappServiceServer) ModifyAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) ModifyCollector(context.Context, *CollectorMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) ModifyTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) PlayTTS(context.Context, *StringMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) QueryAlarmRec(context.Context, *QueryAlarmRecMessage) (*RspAlarmRecMessage, error)
- func (UnimplementedWebappServiceServer) UpgradeCheck(context.Context, *EmptyMessage) (*EmptyMessage, error)
- func (UnimplementedWebappServiceServer) UpgradeStatus(context.Context, *EmptyMessage) (*RspUpgradeMessage, error)
- type UnsafeWebappServiceServer
- type VerMessage
- type WebappServiceClient
- type WebappServiceServer
- type WebappService_GetAlarmStreamClient
- type WebappService_GetAlarmStreamServer
Constants ¶
This section is empty.
Variables ¶
var File_webappapi_proto protoreflect.FileDescriptor
var WebappService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "webappapi.WebappService", HandlerType: (*WebappServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _WebappService_Login_Handler, }, { MethodName: "Echo", Handler: _WebappService_Echo_Handler, }, { MethodName: "GetVersion", Handler: _WebappService_GetVersion_Handler, }, { MethodName: "GetVersion2", Handler: _WebappService_GetVersion2_Handler, }, { MethodName: "ChangePwd", Handler: _WebappService_ChangePwd_Handler, }, { MethodName: "ControllerRestarted", Handler: _WebappService_ControllerRestarted_Handler, }, { MethodName: "PlayTTS", Handler: _WebappService_PlayTTS_Handler, }, { MethodName: "QueryAlarmRec", Handler: _WebappService_QueryAlarmRec_Handler, }, { MethodName: "ConfirmAlarm", Handler: _WebappService_ConfirmAlarm_Handler, }, { MethodName: "EndAlarm", Handler: _WebappService_EndAlarm_Handler, }, { MethodName: "DelAlarms", Handler: _WebappService_DelAlarms_Handler, }, { MethodName: "GetCurAlarmRec", Handler: _WebappService_GetCurAlarmRec_Handler, }, { MethodName: "AddTimeTab", Handler: _WebappService_AddTimeTab_Handler, }, { MethodName: "DelTimeTab", Handler: _WebappService_DelTimeTab_Handler, }, { MethodName: "ModifyTimeTab", Handler: _WebappService_ModifyTimeTab_Handler, }, { MethodName: "GetTimeTab", Handler: _WebappService_GetTimeTab_Handler, }, { MethodName: "GetAllTimeTab", Handler: _WebappService_GetAllTimeTab_Handler, }, { MethodName: "AddCollector", Handler: _WebappService_AddCollector_Handler, }, { MethodName: "DelCollector", Handler: _WebappService_DelCollector_Handler, }, { MethodName: "ModifyCollector", Handler: _WebappService_ModifyCollector_Handler, }, { MethodName: "GetCollector", Handler: _WebappService_GetCollector_Handler, }, { MethodName: "GetAllCollector", Handler: _WebappService_GetAllCollector_Handler, }, { MethodName: "GetCollectorStatus", Handler: _WebappService_GetCollectorStatus_Handler, }, { MethodName: "AddAlarmSet", Handler: _WebappService_AddAlarmSet_Handler, }, { MethodName: "DelAlarmSet", Handler: _WebappService_DelAlarmSet_Handler, }, { MethodName: "ModifyAlarmSet", Handler: _WebappService_ModifyAlarmSet_Handler, }, { MethodName: "GetAlarmSet", Handler: _WebappService_GetAlarmSet_Handler, }, { MethodName: "GetAllAlarmSet", Handler: _WebappService_GetAllAlarmSet_Handler, }, { MethodName: "UpgradeCheck", Handler: _WebappService_UpgradeCheck_Handler, }, { MethodName: "UpgradeStatus", Handler: _WebappService_UpgradeStatus_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetAlarmStream", Handler: _WebappService_GetAlarmStream_Handler, ServerStreams: true, }, }, Metadata: "webappapi.proto", }
WebappService_ServiceDesc is the grpc.ServiceDesc for WebappService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebappServiceHandler ¶
func RegisterWebappServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWebappServiceHandler registers the http handlers for service WebappService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWebappServiceHandlerClient ¶
func RegisterWebappServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebappServiceClient) error
RegisterWebappServiceHandlerClient registers the http handlers for service WebappService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WebappServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WebappServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WebappServiceClient" to call the correct interceptors.
func RegisterWebappServiceHandlerFromEndpoint ¶
func RegisterWebappServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWebappServiceHandlerFromEndpoint is same as RegisterWebappServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWebappServiceHandlerServer ¶
func RegisterWebappServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebappServiceServer) error
RegisterWebappServiceHandlerServer registers the http handlers for service WebappService to "mux". UnaryRPC :call WebappServiceServer 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 RegisterWebappServiceHandlerFromEndpoint instead.
func RegisterWebappServiceServer ¶
func RegisterWebappServiceServer(s grpc.ServiceRegistrar, srv WebappServiceServer)
Types ¶
type AlarmRec ¶
type AlarmRec struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AlarmId int32 `protobuf:"varint,2,opt,name=alarmId,proto3" json:"alarmId,omitempty"` StartTime uint64 `protobuf:"varint,3,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime uint64 `protobuf:"varint,4,opt,name=endTime,proto3" json:"endTime,omitempty"` Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` IsConfirmed bool `protobuf:"varint,6,opt,name=isConfirmed,proto3" json:"isConfirmed,omitempty"` IsEnd bool `protobuf:"varint,7,opt,name=isEnd,proto3" json:"isEnd,omitempty"` LastTime uint64 `protobuf:"varint,8,opt,name=lastTime,proto3" json:"lastTime,omitempty"` AudioEn bool `protobuf:"varint,9,opt,name=audioEn,proto3" json:"audioEn,omitempty"` Pos string `protobuf:"bytes,10,opt,name=pos,proto3" json:"pos,omitempty"` // contains filtered or unexported fields }
func (*AlarmRec) Descriptor
deprecated
func (*AlarmRec) GetAlarmId ¶
func (*AlarmRec) GetAudioEn ¶
func (*AlarmRec) GetEndTime ¶
func (*AlarmRec) GetIsConfirmed ¶
func (*AlarmRec) GetLastTime ¶
func (*AlarmRec) GetStartTime ¶
func (*AlarmRec) ProtoMessage ¶
func (*AlarmRec) ProtoMessage()
func (*AlarmRec) ProtoReflect ¶
func (x *AlarmRec) ProtoReflect() protoreflect.Message
type AlarmSetArray ¶
type AlarmSetArray struct { AlarmSets []*AlarmSetMessage `protobuf:"bytes,1,rep,name=alarmSets,proto3" json:"alarmSets,omitempty"` // contains filtered or unexported fields }
func (*AlarmSetArray) Descriptor
deprecated
func (*AlarmSetArray) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSetArray.ProtoReflect.Descriptor instead.
func (*AlarmSetArray) GetAlarmSets ¶
func (x *AlarmSetArray) GetAlarmSets() []*AlarmSetMessage
func (*AlarmSetArray) ProtoMessage ¶
func (*AlarmSetArray) ProtoMessage()
func (*AlarmSetArray) ProtoReflect ¶
func (x *AlarmSetArray) ProtoReflect() protoreflect.Message
func (*AlarmSetArray) Reset ¶
func (x *AlarmSetArray) Reset()
func (*AlarmSetArray) String ¶
func (x *AlarmSetArray) String() string
type AlarmSetMessage ¶
type AlarmSetMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Position string `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"` TimeTabId uint32 `protobuf:"varint,4,opt,name=timeTabId,proto3" json:"timeTabId,omitempty"` CollectorId uint32 `protobuf:"varint,5,opt,name=collectorId,proto3" json:"collectorId,omitempty"` CollectorCh uint32 `protobuf:"varint,6,opt,name=collectorCh,proto3" json:"collectorCh,omitempty"` AlarmType uint32 `protobuf:"varint,7,opt,name=alarmType,proto3" json:"alarmType,omitempty"` AlarmGate float32 `protobuf:"fixed32,8,opt,name=alarmGate,proto3" json:"alarmGate,omitempty"` DelayCount uint32 `protobuf:"varint,9,opt,name=delayCount,proto3" json:"delayCount,omitempty"` Enable bool `protobuf:"varint,10,opt,name=enable,proto3" json:"enable,omitempty"` CollectorPos string `protobuf:"bytes,11,opt,name=collectorPos,proto3" json:"collectorPos,omitempty"` TimeTabTitle string `protobuf:"bytes,12,opt,name=timeTabTitle,proto3" json:"timeTabTitle,omitempty"` AudioEn bool `protobuf:"varint,13,opt,name=audioEn,proto3" json:"audioEn,omitempty"` TtsFile string `protobuf:"bytes,14,opt,name=ttsFile,proto3" json:"ttsFile,omitempty"` // contains filtered or unexported fields }
func (*AlarmSetMessage) Descriptor
deprecated
func (*AlarmSetMessage) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSetMessage.ProtoReflect.Descriptor instead.
func (*AlarmSetMessage) GetAlarmGate ¶
func (x *AlarmSetMessage) GetAlarmGate() float32
func (*AlarmSetMessage) GetAlarmType ¶
func (x *AlarmSetMessage) GetAlarmType() uint32
func (*AlarmSetMessage) GetAudioEn ¶
func (x *AlarmSetMessage) GetAudioEn() bool
func (*AlarmSetMessage) GetCollectorCh ¶
func (x *AlarmSetMessage) GetCollectorCh() uint32
func (*AlarmSetMessage) GetCollectorId ¶
func (x *AlarmSetMessage) GetCollectorId() uint32
func (*AlarmSetMessage) GetCollectorPos ¶
func (x *AlarmSetMessage) GetCollectorPos() string
func (*AlarmSetMessage) GetDelayCount ¶
func (x *AlarmSetMessage) GetDelayCount() uint32
func (*AlarmSetMessage) GetEnable ¶
func (x *AlarmSetMessage) GetEnable() bool
func (*AlarmSetMessage) GetId ¶
func (x *AlarmSetMessage) GetId() uint32
func (*AlarmSetMessage) GetPosition ¶
func (x *AlarmSetMessage) GetPosition() string
func (*AlarmSetMessage) GetTimeTabId ¶
func (x *AlarmSetMessage) GetTimeTabId() uint32
func (*AlarmSetMessage) GetTimeTabTitle ¶
func (x *AlarmSetMessage) GetTimeTabTitle() string
func (*AlarmSetMessage) GetTitle ¶
func (x *AlarmSetMessage) GetTitle() string
func (*AlarmSetMessage) GetTtsFile ¶
func (x *AlarmSetMessage) GetTtsFile() string
func (*AlarmSetMessage) ProtoMessage ¶
func (*AlarmSetMessage) ProtoMessage()
func (*AlarmSetMessage) ProtoReflect ¶
func (x *AlarmSetMessage) ProtoReflect() protoreflect.Message
func (*AlarmSetMessage) Reset ¶
func (x *AlarmSetMessage) Reset()
func (*AlarmSetMessage) String ¶
func (x *AlarmSetMessage) String() string
type ChangePassMessage ¶
type ChangePassMessage struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Newpass string `protobuf:"bytes,2,opt,name=newpass,proto3" json:"newpass,omitempty"` // contains filtered or unexported fields }
func (*ChangePassMessage) Descriptor
deprecated
func (*ChangePassMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChangePassMessage.ProtoReflect.Descriptor instead.
func (*ChangePassMessage) GetNewpass ¶
func (x *ChangePassMessage) GetNewpass() string
func (*ChangePassMessage) GetUsername ¶
func (x *ChangePassMessage) GetUsername() string
func (*ChangePassMessage) ProtoMessage ¶
func (*ChangePassMessage) ProtoMessage()
func (*ChangePassMessage) ProtoReflect ¶
func (x *ChangePassMessage) ProtoReflect() protoreflect.Message
func (*ChangePassMessage) Reset ¶
func (x *ChangePassMessage) Reset()
func (*ChangePassMessage) String ¶
func (x *ChangePassMessage) String() string
type CollectorArray ¶
type CollectorArray struct { Collectors []*CollectorMessage `protobuf:"bytes,1,rep,name=collectors,proto3" json:"collectors,omitempty"` // contains filtered or unexported fields }
func (*CollectorArray) Descriptor
deprecated
func (*CollectorArray) Descriptor() ([]byte, []int)
Deprecated: Use CollectorArray.ProtoReflect.Descriptor instead.
func (*CollectorArray) GetCollectors ¶
func (x *CollectorArray) GetCollectors() []*CollectorMessage
func (*CollectorArray) ProtoMessage ¶
func (*CollectorArray) ProtoMessage()
func (*CollectorArray) ProtoReflect ¶
func (x *CollectorArray) ProtoReflect() protoreflect.Message
func (*CollectorArray) Reset ¶
func (x *CollectorArray) Reset()
func (*CollectorArray) String ¶
func (x *CollectorArray) String() string
type CollectorMessage ¶
type CollectorMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Pos string `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` LocalPort uint32 `protobuf:"varint,5,opt,name=localPort,proto3" json:"localPort,omitempty"` IsConnected bool `protobuf:"varint,6,opt,name=isConnected,proto3" json:"isConnected,omitempty"` // contains filtered or unexported fields }
func (*CollectorMessage) Descriptor
deprecated
func (*CollectorMessage) Descriptor() ([]byte, []int)
Deprecated: Use CollectorMessage.ProtoReflect.Descriptor instead.
func (*CollectorMessage) GetId ¶
func (x *CollectorMessage) GetId() uint32
func (*CollectorMessage) GetIp ¶
func (x *CollectorMessage) GetIp() string
func (*CollectorMessage) GetIsConnected ¶
func (x *CollectorMessage) GetIsConnected() bool
func (*CollectorMessage) GetLocalPort ¶
func (x *CollectorMessage) GetLocalPort() uint32
func (*CollectorMessage) GetPort ¶
func (x *CollectorMessage) GetPort() uint32
func (*CollectorMessage) GetPos ¶
func (x *CollectorMessage) GetPos() string
func (*CollectorMessage) ProtoMessage ¶
func (*CollectorMessage) ProtoMessage()
func (*CollectorMessage) ProtoReflect ¶
func (x *CollectorMessage) ProtoReflect() protoreflect.Message
func (*CollectorMessage) Reset ¶
func (x *CollectorMessage) Reset()
func (*CollectorMessage) String ¶
func (x *CollectorMessage) String() string
type CollectorStatusMessage ¶
type CollectorStatusMessage struct { Di []bool `protobuf:"varint,1,rep,packed,name=Di,proto3" json:"Di,omitempty"` Do []bool `protobuf:"varint,2,rep,packed,name=Do,proto3" json:"Do,omitempty"` Adc []float32 `protobuf:"fixed32,3,rep,packed,name=Adc,proto3" json:"Adc,omitempty"` IsConnected bool `protobuf:"varint,4,opt,name=isConnected,proto3" json:"isConnected,omitempty"` Pos string `protobuf:"bytes,5,opt,name=pos,proto3" json:"pos,omitempty"` // contains filtered or unexported fields }
func (*CollectorStatusMessage) Descriptor
deprecated
func (*CollectorStatusMessage) Descriptor() ([]byte, []int)
Deprecated: Use CollectorStatusMessage.ProtoReflect.Descriptor instead.
func (*CollectorStatusMessage) GetAdc ¶
func (x *CollectorStatusMessage) GetAdc() []float32
func (*CollectorStatusMessage) GetDi ¶
func (x *CollectorStatusMessage) GetDi() []bool
func (*CollectorStatusMessage) GetDo ¶
func (x *CollectorStatusMessage) GetDo() []bool
func (*CollectorStatusMessage) GetIsConnected ¶
func (x *CollectorStatusMessage) GetIsConnected() bool
func (*CollectorStatusMessage) GetPos ¶
func (x *CollectorStatusMessage) GetPos() string
func (*CollectorStatusMessage) ProtoMessage ¶
func (*CollectorStatusMessage) ProtoMessage()
func (*CollectorStatusMessage) ProtoReflect ¶
func (x *CollectorStatusMessage) ProtoReflect() protoreflect.Message
func (*CollectorStatusMessage) Reset ¶
func (x *CollectorStatusMessage) Reset()
func (*CollectorStatusMessage) String ¶
func (x *CollectorStatusMessage) 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 LoginReqMessage ¶
type LoginReqMessage struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Passwdmd5 string `protobuf:"bytes,2,opt,name=passwdmd5,proto3" json:"passwdmd5,omitempty"` // contains filtered or unexported fields }
func (*LoginReqMessage) Descriptor
deprecated
func (*LoginReqMessage) Descriptor() ([]byte, []int)
Deprecated: Use LoginReqMessage.ProtoReflect.Descriptor instead.
func (*LoginReqMessage) GetPasswdmd5 ¶
func (x *LoginReqMessage) GetPasswdmd5() string
func (*LoginReqMessage) GetUsername ¶
func (x *LoginReqMessage) GetUsername() string
func (*LoginReqMessage) ProtoMessage ¶
func (*LoginReqMessage) ProtoMessage()
func (*LoginReqMessage) ProtoReflect ¶
func (x *LoginReqMessage) ProtoReflect() protoreflect.Message
func (*LoginReqMessage) Reset ¶
func (x *LoginReqMessage) Reset()
func (*LoginReqMessage) String ¶
func (x *LoginReqMessage) String() string
type LoginRespMessage ¶
type LoginRespMessage struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginRespMessage) Descriptor
deprecated
func (*LoginRespMessage) Descriptor() ([]byte, []int)
Deprecated: Use LoginRespMessage.ProtoReflect.Descriptor instead.
func (*LoginRespMessage) GetToken ¶
func (x *LoginRespMessage) GetToken() string
func (*LoginRespMessage) ProtoMessage ¶
func (*LoginRespMessage) ProtoMessage()
func (*LoginRespMessage) ProtoReflect ¶
func (x *LoginRespMessage) ProtoReflect() protoreflect.Message
func (*LoginRespMessage) Reset ¶
func (x *LoginRespMessage) Reset()
func (*LoginRespMessage) String ¶
func (x *LoginRespMessage) String() string
type QueryAlarmRecMessage ¶
type QueryAlarmRecMessage struct { FromTime uint64 `protobuf:"varint,1,opt,name=fromTime,proto3" json:"fromTime,omitempty"` ToTime uint64 `protobuf:"varint,2,opt,name=toTime,proto3" json:"toTime,omitempty"` PgSize uint32 `protobuf:"varint,3,opt,name=pgSize,proto3" json:"pgSize,omitempty"` PgIndex uint32 `protobuf:"varint,4,opt,name=pgIndex,proto3" json:"pgIndex,omitempty"` // contains filtered or unexported fields }
func (*QueryAlarmRecMessage) Descriptor
deprecated
func (*QueryAlarmRecMessage) Descriptor() ([]byte, []int)
Deprecated: Use QueryAlarmRecMessage.ProtoReflect.Descriptor instead.
func (*QueryAlarmRecMessage) GetFromTime ¶
func (x *QueryAlarmRecMessage) GetFromTime() uint64
func (*QueryAlarmRecMessage) GetPgIndex ¶
func (x *QueryAlarmRecMessage) GetPgIndex() uint32
func (*QueryAlarmRecMessage) GetPgSize ¶
func (x *QueryAlarmRecMessage) GetPgSize() uint32
func (*QueryAlarmRecMessage) GetToTime ¶
func (x *QueryAlarmRecMessage) GetToTime() uint64
func (*QueryAlarmRecMessage) ProtoMessage ¶
func (*QueryAlarmRecMessage) ProtoMessage()
func (*QueryAlarmRecMessage) ProtoReflect ¶
func (x *QueryAlarmRecMessage) ProtoReflect() protoreflect.Message
func (*QueryAlarmRecMessage) Reset ¶
func (x *QueryAlarmRecMessage) Reset()
func (*QueryAlarmRecMessage) String ¶
func (x *QueryAlarmRecMessage) String() string
type RecIdArray ¶
type RecIdArray struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*RecIdArray) Descriptor
deprecated
func (*RecIdArray) Descriptor() ([]byte, []int)
Deprecated: Use RecIdArray.ProtoReflect.Descriptor instead.
func (*RecIdArray) GetIds ¶
func (x *RecIdArray) GetIds() []uint32
func (*RecIdArray) ProtoMessage ¶
func (*RecIdArray) ProtoMessage()
func (*RecIdArray) ProtoReflect ¶
func (x *RecIdArray) ProtoReflect() protoreflect.Message
func (*RecIdArray) Reset ¶
func (x *RecIdArray) Reset()
func (*RecIdArray) String ¶
func (x *RecIdArray) String() string
type RecIdMessage ¶
type RecIdMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RecIdMessage) Descriptor
deprecated
func (*RecIdMessage) Descriptor() ([]byte, []int)
Deprecated: Use RecIdMessage.ProtoReflect.Descriptor instead.
func (*RecIdMessage) GetId ¶
func (x *RecIdMessage) GetId() uint32
func (*RecIdMessage) ProtoMessage ¶
func (*RecIdMessage) ProtoMessage()
func (*RecIdMessage) ProtoReflect ¶
func (x *RecIdMessage) ProtoReflect() protoreflect.Message
func (*RecIdMessage) Reset ¶
func (x *RecIdMessage) Reset()
func (*RecIdMessage) String ¶
func (x *RecIdMessage) String() string
type RspAlarmRecMessage ¶
type RspAlarmRecMessage struct { TotalCount uint32 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` PgCount uint32 `protobuf:"varint,2,opt,name=pgCount,proto3" json:"pgCount,omitempty"` Alarms []*AlarmRec `protobuf:"bytes,3,rep,name=alarms,proto3" json:"alarms,omitempty"` // contains filtered or unexported fields }
func (*RspAlarmRecMessage) Descriptor
deprecated
func (*RspAlarmRecMessage) Descriptor() ([]byte, []int)
Deprecated: Use RspAlarmRecMessage.ProtoReflect.Descriptor instead.
func (*RspAlarmRecMessage) GetAlarms ¶
func (x *RspAlarmRecMessage) GetAlarms() []*AlarmRec
func (*RspAlarmRecMessage) GetPgCount ¶
func (x *RspAlarmRecMessage) GetPgCount() uint32
func (*RspAlarmRecMessage) GetTotalCount ¶
func (x *RspAlarmRecMessage) GetTotalCount() uint32
func (*RspAlarmRecMessage) ProtoMessage ¶
func (*RspAlarmRecMessage) ProtoMessage()
func (*RspAlarmRecMessage) ProtoReflect ¶
func (x *RspAlarmRecMessage) ProtoReflect() protoreflect.Message
func (*RspAlarmRecMessage) Reset ¶
func (x *RspAlarmRecMessage) Reset()
func (*RspAlarmRecMessage) String ¶
func (x *RspAlarmRecMessage) String() string
type RspAlarmRecStreamMessage ¶
type RspAlarmRecStreamMessage struct { Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` AlarmRecMsg *RspAlarmRecMessage `protobuf:"bytes,2,opt,name=alarmRecMsg,proto3" json:"alarmRecMsg,omitempty"` // contains filtered or unexported fields }
func (*RspAlarmRecStreamMessage) Descriptor
deprecated
func (*RspAlarmRecStreamMessage) Descriptor() ([]byte, []int)
Deprecated: Use RspAlarmRecStreamMessage.ProtoReflect.Descriptor instead.
func (*RspAlarmRecStreamMessage) GetAlarmRecMsg ¶
func (x *RspAlarmRecStreamMessage) GetAlarmRecMsg() *RspAlarmRecMessage
func (*RspAlarmRecStreamMessage) GetType ¶
func (x *RspAlarmRecStreamMessage) GetType() uint32
func (*RspAlarmRecStreamMessage) ProtoMessage ¶
func (*RspAlarmRecStreamMessage) ProtoMessage()
func (*RspAlarmRecStreamMessage) ProtoReflect ¶
func (x *RspAlarmRecStreamMessage) ProtoReflect() protoreflect.Message
func (*RspAlarmRecStreamMessage) Reset ¶
func (x *RspAlarmRecStreamMessage) Reset()
func (*RspAlarmRecStreamMessage) String ¶
func (x *RspAlarmRecStreamMessage) String() string
type RspUpgradeMessage ¶
type RspUpgradeMessage struct { Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Fsize uint64 `protobuf:"varint,2,opt,name=fsize,proto3" json:"fsize,omitempty"` Wsize uint64 `protobuf:"varint,3,opt,name=wsize,proto3" json:"wsize,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*RspUpgradeMessage) Descriptor
deprecated
func (*RspUpgradeMessage) Descriptor() ([]byte, []int)
Deprecated: Use RspUpgradeMessage.ProtoReflect.Descriptor instead.
func (*RspUpgradeMessage) GetErr ¶
func (x *RspUpgradeMessage) GetErr() string
func (*RspUpgradeMessage) GetFsize ¶
func (x *RspUpgradeMessage) GetFsize() uint64
func (*RspUpgradeMessage) GetStatus ¶
func (x *RspUpgradeMessage) GetStatus() uint32
func (*RspUpgradeMessage) GetWsize ¶
func (x *RspUpgradeMessage) GetWsize() uint64
func (*RspUpgradeMessage) ProtoMessage ¶
func (*RspUpgradeMessage) ProtoMessage()
func (*RspUpgradeMessage) ProtoReflect ¶
func (x *RspUpgradeMessage) ProtoReflect() protoreflect.Message
func (*RspUpgradeMessage) Reset ¶
func (x *RspUpgradeMessage) Reset()
func (*RspUpgradeMessage) String ¶
func (x *RspUpgradeMessage) String() string
type StringMessage ¶
type StringMessage struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*StringMessage) Descriptor
deprecated
func (*StringMessage) Descriptor() ([]byte, []int)
Deprecated: Use StringMessage.ProtoReflect.Descriptor instead.
func (*StringMessage) GetValue ¶
func (x *StringMessage) GetValue() string
func (*StringMessage) ProtoMessage ¶
func (*StringMessage) ProtoMessage()
func (*StringMessage) ProtoReflect ¶
func (x *StringMessage) ProtoReflect() protoreflect.Message
func (*StringMessage) Reset ¶
func (x *StringMessage) Reset()
func (*StringMessage) String ¶
func (x *StringMessage) String() string
type TimeTabMessage ¶
type TimeTabMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Mon string `protobuf:"bytes,3,opt,name=mon,proto3" json:"mon,omitempty"` Tues string `protobuf:"bytes,4,opt,name=tues,proto3" json:"tues,omitempty"` Wed string `protobuf:"bytes,5,opt,name=wed,proto3" json:"wed,omitempty"` Thur string `protobuf:"bytes,6,opt,name=thur,proto3" json:"thur,omitempty"` Fri string `protobuf:"bytes,7,opt,name=fri,proto3" json:"fri,omitempty"` Sat string `protobuf:"bytes,8,opt,name=sat,proto3" json:"sat,omitempty"` Sun string `protobuf:"bytes,9,opt,name=sun,proto3" json:"sun,omitempty"` // contains filtered or unexported fields }
func (*TimeTabMessage) Descriptor
deprecated
func (*TimeTabMessage) Descriptor() ([]byte, []int)
Deprecated: Use TimeTabMessage.ProtoReflect.Descriptor instead.
func (*TimeTabMessage) GetFri ¶
func (x *TimeTabMessage) GetFri() string
func (*TimeTabMessage) GetId ¶
func (x *TimeTabMessage) GetId() uint32
func (*TimeTabMessage) GetMon ¶
func (x *TimeTabMessage) GetMon() string
func (*TimeTabMessage) GetSat ¶
func (x *TimeTabMessage) GetSat() string
func (*TimeTabMessage) GetSun ¶
func (x *TimeTabMessage) GetSun() string
func (*TimeTabMessage) GetThur ¶
func (x *TimeTabMessage) GetThur() string
func (*TimeTabMessage) GetTitle ¶
func (x *TimeTabMessage) GetTitle() string
func (*TimeTabMessage) GetTues ¶
func (x *TimeTabMessage) GetTues() string
func (*TimeTabMessage) GetWed ¶
func (x *TimeTabMessage) GetWed() string
func (*TimeTabMessage) ProtoMessage ¶
func (*TimeTabMessage) ProtoMessage()
func (*TimeTabMessage) ProtoReflect ¶
func (x *TimeTabMessage) ProtoReflect() protoreflect.Message
func (*TimeTabMessage) Reset ¶
func (x *TimeTabMessage) Reset()
func (*TimeTabMessage) String ¶
func (x *TimeTabMessage) String() string
type TimeTabsArray ¶
type TimeTabsArray struct { Timetabs []*TimeTabMessage `protobuf:"bytes,1,rep,name=timetabs,proto3" json:"timetabs,omitempty"` // contains filtered or unexported fields }
func (*TimeTabsArray) Descriptor
deprecated
func (*TimeTabsArray) Descriptor() ([]byte, []int)
Deprecated: Use TimeTabsArray.ProtoReflect.Descriptor instead.
func (*TimeTabsArray) GetTimetabs ¶
func (x *TimeTabsArray) GetTimetabs() []*TimeTabMessage
func (*TimeTabsArray) ProtoMessage ¶
func (*TimeTabsArray) ProtoMessage()
func (*TimeTabsArray) ProtoReflect ¶
func (x *TimeTabsArray) ProtoReflect() protoreflect.Message
func (*TimeTabsArray) Reset ¶
func (x *TimeTabsArray) Reset()
func (*TimeTabsArray) String ¶
func (x *TimeTabsArray) String() string
type UnimplementedWebappServiceServer ¶
type UnimplementedWebappServiceServer struct { }
UnimplementedWebappServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWebappServiceServer) AddAlarmSet ¶
func (UnimplementedWebappServiceServer) AddAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) AddCollector ¶
func (UnimplementedWebappServiceServer) AddCollector(context.Context, *CollectorMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) AddTimeTab ¶
func (UnimplementedWebappServiceServer) AddTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) ChangePwd ¶
func (UnimplementedWebappServiceServer) ChangePwd(context.Context, *ChangePassMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) ConfirmAlarm ¶
func (UnimplementedWebappServiceServer) ConfirmAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) ControllerRestarted ¶
func (UnimplementedWebappServiceServer) ControllerRestarted(context.Context, *EmptyMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) DelAlarmSet ¶
func (UnimplementedWebappServiceServer) DelAlarmSet(context.Context, *RecIdMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) DelAlarms ¶
func (UnimplementedWebappServiceServer) DelAlarms(context.Context, *RecIdArray) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) DelCollector ¶
func (UnimplementedWebappServiceServer) DelCollector(context.Context, *RecIdMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) DelTimeTab ¶
func (UnimplementedWebappServiceServer) DelTimeTab(context.Context, *RecIdMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) Echo ¶
func (UnimplementedWebappServiceServer) Echo(context.Context, *StringMessage) (*StringMessage, error)
func (UnimplementedWebappServiceServer) EndAlarm ¶
func (UnimplementedWebappServiceServer) EndAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) GetAlarmSet ¶
func (UnimplementedWebappServiceServer) GetAlarmSet(context.Context, *RecIdMessage) (*AlarmSetMessage, error)
func (UnimplementedWebappServiceServer) GetAlarmStream ¶
func (UnimplementedWebappServiceServer) GetAlarmStream(*EmptyMessage, WebappService_GetAlarmStreamServer) error
func (UnimplementedWebappServiceServer) GetAllAlarmSet ¶
func (UnimplementedWebappServiceServer) GetAllAlarmSet(context.Context, *EmptyMessage) (*AlarmSetArray, error)
func (UnimplementedWebappServiceServer) GetAllCollector ¶
func (UnimplementedWebappServiceServer) GetAllCollector(context.Context, *EmptyMessage) (*CollectorArray, error)
func (UnimplementedWebappServiceServer) GetAllTimeTab ¶
func (UnimplementedWebappServiceServer) GetAllTimeTab(context.Context, *EmptyMessage) (*TimeTabsArray, error)
func (UnimplementedWebappServiceServer) GetCollector ¶
func (UnimplementedWebappServiceServer) GetCollector(context.Context, *RecIdMessage) (*CollectorMessage, error)
func (UnimplementedWebappServiceServer) GetCollectorStatus ¶
func (UnimplementedWebappServiceServer) GetCollectorStatus(context.Context, *RecIdMessage) (*CollectorStatusMessage, error)
func (UnimplementedWebappServiceServer) GetCurAlarmRec ¶
func (UnimplementedWebappServiceServer) GetCurAlarmRec(context.Context, *EmptyMessage) (*RspAlarmRecMessage, error)
func (UnimplementedWebappServiceServer) GetTimeTab ¶
func (UnimplementedWebappServiceServer) GetTimeTab(context.Context, *RecIdMessage) (*TimeTabMessage, error)
func (UnimplementedWebappServiceServer) GetVersion ¶
func (UnimplementedWebappServiceServer) GetVersion(context.Context, *EmptyMessage) (*StringMessage, error)
func (UnimplementedWebappServiceServer) GetVersion2 ¶
func (UnimplementedWebappServiceServer) GetVersion2(context.Context, *EmptyMessage) (*VerMessage, error)
func (UnimplementedWebappServiceServer) Login ¶
func (UnimplementedWebappServiceServer) Login(context.Context, *LoginReqMessage) (*LoginRespMessage, error)
func (UnimplementedWebappServiceServer) ModifyAlarmSet ¶
func (UnimplementedWebappServiceServer) ModifyAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) ModifyCollector ¶
func (UnimplementedWebappServiceServer) ModifyCollector(context.Context, *CollectorMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) ModifyTimeTab ¶
func (UnimplementedWebappServiceServer) ModifyTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) PlayTTS ¶
func (UnimplementedWebappServiceServer) PlayTTS(context.Context, *StringMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) QueryAlarmRec ¶
func (UnimplementedWebappServiceServer) QueryAlarmRec(context.Context, *QueryAlarmRecMessage) (*RspAlarmRecMessage, error)
func (UnimplementedWebappServiceServer) UpgradeCheck ¶
func (UnimplementedWebappServiceServer) UpgradeCheck(context.Context, *EmptyMessage) (*EmptyMessage, error)
func (UnimplementedWebappServiceServer) UpgradeStatus ¶
func (UnimplementedWebappServiceServer) UpgradeStatus(context.Context, *EmptyMessage) (*RspUpgradeMessage, error)
type UnsafeWebappServiceServer ¶
type UnsafeWebappServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWebappServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebappServiceServer will result in compilation errors.
type VerMessage ¶
type VerMessage struct { BuildTag string `protobuf:"bytes,1,opt,name=buildTag,proto3" json:"buildTag,omitempty"` AppId string `protobuf:"bytes,2,opt,name=appId,proto3" json:"appId,omitempty"` // contains filtered or unexported fields }
func (*VerMessage) Descriptor
deprecated
func (*VerMessage) Descriptor() ([]byte, []int)
Deprecated: Use VerMessage.ProtoReflect.Descriptor instead.
func (*VerMessage) GetAppId ¶
func (x *VerMessage) GetAppId() string
func (*VerMessage) GetBuildTag ¶
func (x *VerMessage) GetBuildTag() string
func (*VerMessage) ProtoMessage ¶
func (*VerMessage) ProtoMessage()
func (*VerMessage) ProtoReflect ¶
func (x *VerMessage) ProtoReflect() protoreflect.Message
func (*VerMessage) Reset ¶
func (x *VerMessage) Reset()
func (*VerMessage) String ¶
func (x *VerMessage) String() string
type WebappServiceClient ¶
type WebappServiceClient interface { Login(ctx context.Context, in *LoginReqMessage, opts ...grpc.CallOption) (*LoginRespMessage, error) Echo(ctx context.Context, in *StringMessage, opts ...grpc.CallOption) (*StringMessage, error) GetVersion(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*StringMessage, error) GetVersion2(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*VerMessage, error) ChangePwd(ctx context.Context, in *ChangePassMessage, opts ...grpc.CallOption) (*EmptyMessage, error) ControllerRestarted(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*EmptyMessage, error) PlayTTS(ctx context.Context, in *StringMessage, opts ...grpc.CallOption) (*EmptyMessage, error) QueryAlarmRec(ctx context.Context, in *QueryAlarmRecMessage, opts ...grpc.CallOption) (*RspAlarmRecMessage, error) ConfirmAlarm(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*EmptyMessage, error) EndAlarm(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*EmptyMessage, error) DelAlarms(ctx context.Context, in *RecIdArray, opts ...grpc.CallOption) (*EmptyMessage, error) GetCurAlarmRec(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*RspAlarmRecMessage, error) GetAlarmStream(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (WebappService_GetAlarmStreamClient, error) AddTimeTab(ctx context.Context, in *TimeTabMessage, opts ...grpc.CallOption) (*EmptyMessage, error) DelTimeTab(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*EmptyMessage, error) ModifyTimeTab(ctx context.Context, in *TimeTabMessage, opts ...grpc.CallOption) (*EmptyMessage, error) GetTimeTab(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*TimeTabMessage, error) GetAllTimeTab(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*TimeTabsArray, error) AddCollector(ctx context.Context, in *CollectorMessage, opts ...grpc.CallOption) (*EmptyMessage, error) DelCollector(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*EmptyMessage, error) ModifyCollector(ctx context.Context, in *CollectorMessage, opts ...grpc.CallOption) (*EmptyMessage, error) GetCollector(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*CollectorMessage, error) GetAllCollector(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*CollectorArray, error) GetCollectorStatus(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*CollectorStatusMessage, error) AddAlarmSet(ctx context.Context, in *AlarmSetMessage, opts ...grpc.CallOption) (*EmptyMessage, error) DelAlarmSet(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*EmptyMessage, error) ModifyAlarmSet(ctx context.Context, in *AlarmSetMessage, opts ...grpc.CallOption) (*EmptyMessage, error) GetAlarmSet(ctx context.Context, in *RecIdMessage, opts ...grpc.CallOption) (*AlarmSetMessage, error) GetAllAlarmSet(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AlarmSetArray, error) UpgradeCheck(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*EmptyMessage, error) UpgradeStatus(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*RspUpgradeMessage, error) }
WebappServiceClient is the client API for WebappService 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 NewWebappServiceClient ¶
func NewWebappServiceClient(cc grpc.ClientConnInterface) WebappServiceClient
type WebappServiceServer ¶
type WebappServiceServer interface { Login(context.Context, *LoginReqMessage) (*LoginRespMessage, error) Echo(context.Context, *StringMessage) (*StringMessage, error) GetVersion(context.Context, *EmptyMessage) (*StringMessage, error) GetVersion2(context.Context, *EmptyMessage) (*VerMessage, error) ChangePwd(context.Context, *ChangePassMessage) (*EmptyMessage, error) ControllerRestarted(context.Context, *EmptyMessage) (*EmptyMessage, error) PlayTTS(context.Context, *StringMessage) (*EmptyMessage, error) QueryAlarmRec(context.Context, *QueryAlarmRecMessage) (*RspAlarmRecMessage, error) ConfirmAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error) EndAlarm(context.Context, *RecIdMessage) (*EmptyMessage, error) DelAlarms(context.Context, *RecIdArray) (*EmptyMessage, error) GetCurAlarmRec(context.Context, *EmptyMessage) (*RspAlarmRecMessage, error) GetAlarmStream(*EmptyMessage, WebappService_GetAlarmStreamServer) error AddTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error) DelTimeTab(context.Context, *RecIdMessage) (*EmptyMessage, error) ModifyTimeTab(context.Context, *TimeTabMessage) (*EmptyMessage, error) GetTimeTab(context.Context, *RecIdMessage) (*TimeTabMessage, error) GetAllTimeTab(context.Context, *EmptyMessage) (*TimeTabsArray, error) AddCollector(context.Context, *CollectorMessage) (*EmptyMessage, error) DelCollector(context.Context, *RecIdMessage) (*EmptyMessage, error) ModifyCollector(context.Context, *CollectorMessage) (*EmptyMessage, error) GetCollector(context.Context, *RecIdMessage) (*CollectorMessage, error) GetAllCollector(context.Context, *EmptyMessage) (*CollectorArray, error) GetCollectorStatus(context.Context, *RecIdMessage) (*CollectorStatusMessage, error) AddAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error) DelAlarmSet(context.Context, *RecIdMessage) (*EmptyMessage, error) ModifyAlarmSet(context.Context, *AlarmSetMessage) (*EmptyMessage, error) GetAlarmSet(context.Context, *RecIdMessage) (*AlarmSetMessage, error) GetAllAlarmSet(context.Context, *EmptyMessage) (*AlarmSetArray, error) UpgradeCheck(context.Context, *EmptyMessage) (*EmptyMessage, error) UpgradeStatus(context.Context, *EmptyMessage) (*RspUpgradeMessage, error) // contains filtered or unexported methods }
WebappServiceServer is the server API for WebappService service. All implementations must embed UnimplementedWebappServiceServer for forward compatibility
type WebappService_GetAlarmStreamClient ¶
type WebappService_GetAlarmStreamClient interface { Recv() (*RspAlarmRecStreamMessage, error) grpc.ClientStream }
type WebappService_GetAlarmStreamServer ¶
type WebappService_GetAlarmStreamServer interface { Send(*RspAlarmRecStreamMessage) error grpc.ServerStream }