|
|
|
@ -122,8 +122,7 @@ type ReactorStatusPing struct {
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
Sensors []*Sensor `protobuf:"bytes,2,rep,name=sensors,proto3" json:"sensors,omitempty"`
|
|
|
|
|
Devices []*Device `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"`
|
|
|
|
|
Devices []*Device `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReactorStatusPing) Reset() {
|
|
|
|
@ -165,13 +164,6 @@ func (x *ReactorStatusPing) GetId() int32 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReactorStatusPing) GetSensors() []*Sensor {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Sensors
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReactorStatusPing) GetDevices() []*Device {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Devices
|
|
|
|
@ -179,100 +171,21 @@ func (x *ReactorStatusPing) GetDevices() []*Device {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Sensor struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Addr int32 `protobuf:"varint,1,opt,name=addr,proto3" json:"addr,omitempty"` // i2c addr
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // use readable name, changable
|
|
|
|
|
Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=grpc.Status" json:"status,omitempty"`
|
|
|
|
|
SampleRate int32 `protobuf:"varint,4,opt,name=sampleRate,proto3" json:"sampleRate,omitempty"` // in seconds
|
|
|
|
|
Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // open for any sort of format
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) Reset() {
|
|
|
|
|
*x = Sensor{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*Sensor) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Sensor.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Sensor) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_internal_pkg_grpc_monitoring_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) GetAddr() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Addr
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) GetName() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) GetStatus() Status {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Status
|
|
|
|
|
}
|
|
|
|
|
return Status_DEAD
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) GetSampleRate() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SampleRate
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Sensor) GetData() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Data
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Device struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Addr int32 `protobuf:"varint,1,opt,name=addr,proto3" json:"addr,omitempty"` // i2c addr used for ID
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // user readable name, changable
|
|
|
|
|
Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=grpc.Status" json:"status,omitempty"`
|
|
|
|
|
Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // any format
|
|
|
|
|
Addr int32 `protobuf:"varint,1,opt,name=addr,proto3" json:"addr,omitempty"` // i2c addr
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // use readable name, changable
|
|
|
|
|
Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=grpc.Status" json:"status,omitempty"`
|
|
|
|
|
Data map[string]string `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // k=v, format
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Device) Reset() {
|
|
|
|
|
*x = Device{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[3]
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -285,7 +198,7 @@ func (x *Device) String() string {
|
|
|
|
|
func (*Device) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *Device) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[3]
|
|
|
|
|
mi := &file_internal_pkg_grpc_monitoring_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -298,7 +211,7 @@ func (x *Device) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Device.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Device) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_internal_pkg_grpc_monitoring_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
return file_internal_pkg_grpc_monitoring_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Device) GetAddr() int32 {
|
|
|
|
@ -322,11 +235,11 @@ func (x *Device) GetStatus() Status {
|
|
|
|
|
return Status_DEAD
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Device) GetData() string {
|
|
|
|
|
func (x *Device) GetData() map[string]string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Data
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var File_internal_pkg_grpc_monitoring_proto protoreflect.FileDescriptor
|
|
|
|
@ -337,40 +250,34 @@ var file_internal_pkg_grpc_monitoring_proto_rawDesc = []byte{
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x67, 0x72, 0x70, 0x63, 0x22, 0x27, 0x0a, 0x15, 0x52, 0x65,
|
|
|
|
|
0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
|
|
0x02, 0x69, 0x64, 0x22, 0x73, 0x0a, 0x11, 0x52, 0x65, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74,
|
|
|
|
|
0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x11, 0x52, 0x65, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x07, 0x73, 0x65, 0x6e, 0x73,
|
|
|
|
|
0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x72, 0x70, 0x63,
|
|
|
|
|
0x2e, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x07, 0x73, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73,
|
|
|
|
|
0x12, 0x26, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
|
|
|
|
|
0x07, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x6e,
|
|
|
|
|
0x73, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x05, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x73,
|
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x67, 0x72,
|
|
|
|
|
0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x18,
|
|
|
|
|
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74,
|
|
|
|
|
0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6a, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12,
|
|
|
|
|
0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x61,
|
|
|
|
|
0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53,
|
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a,
|
|
|
|
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74,
|
|
|
|
|
0x61, 0x2a, 0x29, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x44,
|
|
|
|
|
0x45, 0x41, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x56, 0x45, 0x10, 0x01,
|
|
|
|
|
0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x4b, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x32, 0x5a, 0x0a, 0x0a,
|
|
|
|
|
0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x4c, 0x0a, 0x14, 0x52, 0x65,
|
|
|
|
|
0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c,
|
|
|
|
|
0x65, 0x72, 0x12, 0x17, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x6f,
|
|
|
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x1a, 0x1b, 0x2e, 0x67, 0x72,
|
|
|
|
|
0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x13, 0x5a, 0x11, 0x69, 0x6e, 0x74, 0x65,
|
|
|
|
|
0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70,
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x69,
|
|
|
|
|
0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x72, 0x70, 0x63,
|
|
|
|
|
0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73,
|
|
|
|
|
0x22, 0xbb, 0x01, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61,
|
|
|
|
|
0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12,
|
|
|
|
|
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
|
|
|
|
0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
|
|
|
|
0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44,
|
|
|
|
|
0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
|
|
|
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
|
|
|
|
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x29,
|
|
|
|
|
0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x41, 0x44,
|
|
|
|
|
0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a,
|
|
|
|
|
0x06, 0x55, 0x4e, 0x4b, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x32, 0x5a, 0x0a, 0x0a, 0x6d, 0x6f, 0x6e,
|
|
|
|
|
0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x4c, 0x0a, 0x14, 0x52, 0x65, 0x61, 0x63, 0x74,
|
|
|
|
|
0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12,
|
|
|
|
|
0x17, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x1a, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
|
|
|
|
|
0x52, 0x65, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73,
|
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x13, 0x5a, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
|
|
|
|
|
0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -391,21 +298,20 @@ var file_internal_pkg_grpc_monitoring_proto_goTypes = []interface{}{
|
|
|
|
|
(Status)(0), // 0: grpc.Status
|
|
|
|
|
(*ReactorStatusResponse)(nil), // 1: grpc.ReactorStatusResponse
|
|
|
|
|
(*ReactorStatusPing)(nil), // 2: grpc.ReactorStatusPing
|
|
|
|
|
(*Sensor)(nil), // 3: grpc.Sensor
|
|
|
|
|
(*Device)(nil), // 4: grpc.Device
|
|
|
|
|
(*Device)(nil), // 3: grpc.Device
|
|
|
|
|
nil, // 4: grpc.Device.DataEntry
|
|
|
|
|
}
|
|
|
|
|
var file_internal_pkg_grpc_monitoring_proto_depIdxs = []int32{
|
|
|
|
|
3, // 0: grpc.ReactorStatusPing.sensors:type_name -> grpc.Sensor
|
|
|
|
|
4, // 1: grpc.ReactorStatusPing.devices:type_name -> grpc.Device
|
|
|
|
|
0, // 2: grpc.Sensor.status:type_name -> grpc.Status
|
|
|
|
|
0, // 3: grpc.Device.status:type_name -> grpc.Status
|
|
|
|
|
2, // 4: grpc.monitoring.ReactorStatusHandler:input_type -> grpc.ReactorStatusPing
|
|
|
|
|
1, // 5: grpc.monitoring.ReactorStatusHandler:output_type -> grpc.ReactorStatusResponse
|
|
|
|
|
5, // [5:6] is the sub-list for method output_type
|
|
|
|
|
4, // [4:5] is the sub-list for method input_type
|
|
|
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
|
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:4] is the sub-list for field type_name
|
|
|
|
|
3, // 0: grpc.ReactorStatusPing.devices:type_name -> grpc.Device
|
|
|
|
|
0, // 1: grpc.Device.status:type_name -> grpc.Status
|
|
|
|
|
4, // 2: grpc.Device.data:type_name -> grpc.Device.DataEntry
|
|
|
|
|
2, // 3: grpc.monitoring.ReactorStatusHandler:input_type -> grpc.ReactorStatusPing
|
|
|
|
|
1, // 4: grpc.monitoring.ReactorStatusHandler:output_type -> grpc.ReactorStatusResponse
|
|
|
|
|
4, // [4:5] is the sub-list for method output_type
|
|
|
|
|
3, // [3:4] is the sub-list for method input_type
|
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_internal_pkg_grpc_monitoring_proto_init() }
|
|
|
|
@ -439,18 +345,6 @@ func file_internal_pkg_grpc_monitoring_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_internal_pkg_grpc_monitoring_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*Sensor); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_internal_pkg_grpc_monitoring_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*Device); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|