Documentation ¶
Index ¶
- Variables
- func RegisterPlantStorageServer(s grpc.ServiceRegistrar, srv PlantStorageServer)
- type AddPlantRequest
- func (*AddPlantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddPlantRequest) GetGpioSensorSlot() int32
- func (x *AddPlantRequest) GetImages() [][]byte
- func (x *AddPlantRequest) GetInfo() string
- func (x *AddPlantRequest) GetName() string
- func (x *AddPlantRequest) GetPlantId() int32
- func (*AddPlantRequest) ProtoMessage()
- func (x *AddPlantRequest) ProtoReflect() protoreflect.Message
- func (x *AddPlantRequest) Reset()
- func (x *AddPlantRequest) String() string
- type AllPlantsReply
- type DeletePlantReply
- type DeviceOverviewMsg
- func (*DeviceOverviewMsg) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceOverviewMsg) GetDeviceId() int32
- func (x *DeviceOverviewMsg) GetInterface() string
- func (x *DeviceOverviewMsg) GetName() string
- func (x *DeviceOverviewMsg) GetType() DeviceTypes
- func (x *DeviceOverviewMsg) GetUserId() string
- func (*DeviceOverviewMsg) ProtoMessage()
- func (x *DeviceOverviewMsg) ProtoReflect() protoreflect.Message
- func (x *DeviceOverviewMsg) Reset()
- func (x *DeviceOverviewMsg) String() string
- type DeviceTypes
- func (DeviceTypes) Descriptor() protoreflect.EnumDescriptor
- func (x DeviceTypes) Enum() *DeviceTypes
- func (DeviceTypes) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeviceTypes) Number() protoreflect.EnumNumber
- func (x DeviceTypes) String() string
- func (DeviceTypes) Type() protoreflect.EnumType
- type GetAdditionalDataPlantReply
- func (*GetAdditionalDataPlantReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdditionalDataPlantReply) GetGpio() *GpioIdentifierMsg
- func (x *GetAdditionalDataPlantReply) GetHumidity() []*HumidityMsg
- func (x *GetAdditionalDataPlantReply) GetImages() [][]byte
- func (x *GetAdditionalDataPlantReply) GetPlant() int32
- func (*GetAdditionalDataPlantReply) ProtoMessage()
- func (x *GetAdditionalDataPlantReply) ProtoReflect() protoreflect.Message
- func (x *GetAdditionalDataPlantReply) Reset()
- func (x *GetAdditionalDataPlantReply) String() string
- type GetAdditionalDataPlantRequest
- func (*GetAdditionalDataPlantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdditionalDataPlantRequest) GetPlantId() int32
- func (*GetAdditionalDataPlantRequest) ProtoMessage()
- func (x *GetAdditionalDataPlantRequest) ProtoReflect() protoreflect.Message
- func (x *GetAdditionalDataPlantRequest) Reset()
- func (x *GetAdditionalDataPlantRequest) String() string
- type GetAllPlantsRequest
- type GetConnectedDevicesRequest
- type GetConnectedDevicesResponse
- func (*GetConnectedDevicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedDevicesResponse) GetDevices() []*DeviceOverviewMsg
- func (*GetConnectedDevicesResponse) ProtoMessage()
- func (x *GetConnectedDevicesResponse) ProtoReflect() protoreflect.Message
- func (x *GetConnectedDevicesResponse) Reset()
- func (x *GetConnectedDevicesResponse) String() string
- type GetRequestedSensorStatesRequest
- func (*GetRequestedSensorStatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequestedSensorStatesRequest) GetDeviceId() int32
- func (*GetRequestedSensorStatesRequest) ProtoMessage()
- func (x *GetRequestedSensorStatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequestedSensorStatesRequest) Reset()
- func (x *GetRequestedSensorStatesRequest) String() string
- type GetRequestedSensorStatesResponse
- func (*GetRequestedSensorStatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequestedSensorStatesResponse) GetSensors() []*RequestedSensorMsg
- func (*GetRequestedSensorStatesResponse) ProtoMessage()
- func (x *GetRequestedSensorStatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRequestedSensorStatesResponse) Reset()
- func (x *GetRequestedSensorStatesResponse) String() string
- type GpioIdentifierMsg
- func (*GpioIdentifierMsg) Descriptor() ([]byte, []int)deprecated
- func (x *GpioIdentifierMsg) GetDeviceId() int32
- func (x *GpioIdentifierMsg) GetDeviceSerialInterfaceName() string
- func (x *GpioIdentifierMsg) GetGpioName() string
- func (*GpioIdentifierMsg) ProtoMessage()
- func (x *GpioIdentifierMsg) ProtoReflect() protoreflect.Message
- func (x *GpioIdentifierMsg) Reset()
- func (x *GpioIdentifierMsg) String() string
- type GpioUser
- type HumidityMsg
- func (*HumidityMsg) Descriptor() ([]byte, []int)deprecated
- func (x *HumidityMsg) GetHumidity() int32
- func (x *HumidityMsg) GetTimestamp() float32
- func (*HumidityMsg) ProtoMessage()
- func (x *HumidityMsg) ProtoReflect() protoreflect.Message
- func (x *HumidityMsg) Reset()
- func (x *HumidityMsg) String() string
- type PlantOverviewMsg
- func (*PlantOverviewMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PlantOverviewMsg) GetGpio() *GpioIdentifierMsg
- func (x *PlantOverviewMsg) GetInfo() string
- func (x *PlantOverviewMsg) GetName() string
- func (x *PlantOverviewMsg) GetPlantId() int32
- func (x *PlantOverviewMsg) GetThumbnail() []byte
- func (*PlantOverviewMsg) ProtoMessage()
- func (x *PlantOverviewMsg) ProtoReflect() protoreflect.Message
- func (x *PlantOverviewMsg) Reset()
- func (x *PlantOverviewMsg) String() string
- type PlantRequest
- type PlantStorageClient
- type PlantStorageServer
- type PlantThumbnailMsg
- func (*PlantThumbnailMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PlantThumbnailMsg) GetImage() []byte
- func (x *PlantThumbnailMsg) GetPlantId() int32
- func (*PlantThumbnailMsg) ProtoMessage()
- func (x *PlantThumbnailMsg) ProtoReflect() protoreflect.Message
- func (x *PlantThumbnailMsg) Reset()
- func (x *PlantThumbnailMsg) String() string
- type PlantThumbnailReply
- func (*PlantThumbnailReply) Descriptor() ([]byte, []int)deprecated
- func (x *PlantThumbnailReply) GetImages() []*PlantThumbnailMsg
- func (*PlantThumbnailReply) ProtoMessage()
- func (x *PlantThumbnailReply) ProtoReflect() protoreflect.Message
- func (x *PlantThumbnailReply) Reset()
- func (x *PlantThumbnailReply) String() string
- type RequestedSensorMsg
- func (*RequestedSensorMsg) Descriptor() ([]byte, []int)deprecated
- func (x *RequestedSensorMsg) GetRequestId() int32
- func (x *RequestedSensorMsg) GetSensorId() int32
- func (*RequestedSensorMsg) ProtoMessage()
- func (x *RequestedSensorMsg) ProtoReflect() protoreflect.Message
- func (x *RequestedSensorMsg) Reset()
- func (x *RequestedSensorMsg) String() string
- type StoreHumidityReply
- type StoreHumidityRequest
- func (*StoreHumidityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StoreHumidityRequest) GetHumidity() int32
- func (x *StoreHumidityRequest) GetRequestNumber() int32
- func (*StoreHumidityRequest) ProtoMessage()
- func (x *StoreHumidityRequest) ProtoReflect() protoreflect.Message
- func (x *StoreHumidityRequest) Reset()
- func (x *StoreHumidityRequest) String() string
- type UnimplementedPlantStorageServer
- func (UnimplementedPlantStorageServer) AddNewPlant(context.Context, *AddPlantRequest) (*PlantOverviewMsg, error)
- func (UnimplementedPlantStorageServer) DeletePlant(context.Context, *PlantRequest) (*DeletePlantReply, error)
- func (UnimplementedPlantStorageServer) GetAdditionalDataPlant(context.Context, *GetAdditionalDataPlantRequest) (*GetAdditionalDataPlantReply, error)
- func (UnimplementedPlantStorageServer) GetConnectedDevicesOverview(context.Context, *GetConnectedDevicesRequest) (*GetConnectedDevicesResponse, error)
- func (UnimplementedPlantStorageServer) GetOverviewAllPlants(context.Context, *GetAllPlantsRequest) (*AllPlantsReply, error)
- func (UnimplementedPlantStorageServer) GetRequestedSensorStates(context.Context, *GetRequestedSensorStatesRequest) (*GetRequestedSensorStatesResponse, error)
- func (UnimplementedPlantStorageServer) StoreHumidityEntry(context.Context, *StoreHumidityRequest) (*StoreHumidityReply, error)
- type UnsafePlantStorageServer
Constants ¶
This section is empty.
Variables ¶
var ( GpioUser_name = map[int32]string{ 0: "GPIO_USER_UNDEFINED", 1: "GPIO_USER_PLANT", 2: "GPIO_USER_RELAIS", } GpioUser_value = map[string]int32{ "GPIO_USER_UNDEFINED": 0, "GPIO_USER_PLANT": 1, "GPIO_USER_RELAIS": 2, } )
Enum value maps for GpioUser.
var ( DeviceTypes_name = map[int32]string{ 0: "DEVICE_UNDEFINED", 1: "DEVICE_RPI", 2: "DEVICE_ARDUINO_NANO", } DeviceTypes_value = map[string]int32{ "DEVICE_UNDEFINED": 0, "DEVICE_RPI": 1, "DEVICE_ARDUINO_NANO": 2, } )
Enum value maps for DeviceTypes.
var File_plantStorage_proto protoreflect.FileDescriptor
var PlantStorage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "smart_home.PlantStorage", HandlerType: (*PlantStorageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getOverviewAllPlants", Handler: _PlantStorage_GetOverviewAllPlants_Handler, }, { MethodName: "getAdditionalDataPlant", Handler: _PlantStorage_GetAdditionalDataPlant_Handler, }, { MethodName: "addNewPlant", Handler: _PlantStorage_AddNewPlant_Handler, }, { MethodName: "deletePlant", Handler: _PlantStorage_DeletePlant_Handler, }, { MethodName: "getRequestedSensorStates", Handler: _PlantStorage_GetRequestedSensorStates_Handler, }, { MethodName: "storeHumidityEntry", Handler: _PlantStorage_StoreHumidityEntry_Handler, }, { MethodName: "getConnectedDevicesOverview", Handler: _PlantStorage_GetConnectedDevicesOverview_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plantStorage.proto", }
PlantStorage_ServiceDesc is the grpc.ServiceDesc for PlantStorage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPlantStorageServer ¶
func RegisterPlantStorageServer(s grpc.ServiceRegistrar, srv PlantStorageServer)
Types ¶
type AddPlantRequest ¶
type AddPlantRequest struct { PlantId int32 `protobuf:"varint,1,opt,name=plantId,proto3" json:"plantId,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Info string `protobuf:"bytes,3,opt,name=Info,proto3" json:"Info,omitempty"` GpioSensorSlot int32 `protobuf:"varint,4,opt,name=gpioSensorSlot,proto3" json:"gpioSensorSlot,omitempty"` Images [][]byte `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*AddPlantRequest) Descriptor
deprecated
func (*AddPlantRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddPlantRequest.ProtoReflect.Descriptor instead.
func (*AddPlantRequest) GetGpioSensorSlot ¶
func (x *AddPlantRequest) GetGpioSensorSlot() int32
func (*AddPlantRequest) GetImages ¶
func (x *AddPlantRequest) GetImages() [][]byte
func (*AddPlantRequest) GetInfo ¶
func (x *AddPlantRequest) GetInfo() string
func (*AddPlantRequest) GetName ¶
func (x *AddPlantRequest) GetName() string
func (*AddPlantRequest) GetPlantId ¶
func (x *AddPlantRequest) GetPlantId() int32
func (*AddPlantRequest) ProtoMessage ¶
func (*AddPlantRequest) ProtoMessage()
func (*AddPlantRequest) ProtoReflect ¶
func (x *AddPlantRequest) ProtoReflect() protoreflect.Message
func (*AddPlantRequest) Reset ¶
func (x *AddPlantRequest) Reset()
func (*AddPlantRequest) String ¶
func (x *AddPlantRequest) String() string
type AllPlantsReply ¶
type AllPlantsReply struct { Plants []*PlantOverviewMsg `protobuf:"bytes,1,rep,name=plants,proto3" json:"plants,omitempty"` // contains filtered or unexported fields }
func (*AllPlantsReply) Descriptor
deprecated
func (*AllPlantsReply) Descriptor() ([]byte, []int)
Deprecated: Use AllPlantsReply.ProtoReflect.Descriptor instead.
func (*AllPlantsReply) GetPlants ¶
func (x *AllPlantsReply) GetPlants() []*PlantOverviewMsg
func (*AllPlantsReply) ProtoMessage ¶
func (*AllPlantsReply) ProtoMessage()
func (*AllPlantsReply) ProtoReflect ¶
func (x *AllPlantsReply) ProtoReflect() protoreflect.Message
func (*AllPlantsReply) Reset ¶
func (x *AllPlantsReply) Reset()
func (*AllPlantsReply) String ¶
func (x *AllPlantsReply) String() string
type DeletePlantReply ¶
type DeletePlantReply struct {
// contains filtered or unexported fields
}
func (*DeletePlantReply) Descriptor
deprecated
func (*DeletePlantReply) Descriptor() ([]byte, []int)
Deprecated: Use DeletePlantReply.ProtoReflect.Descriptor instead.
func (*DeletePlantReply) ProtoMessage ¶
func (*DeletePlantReply) ProtoMessage()
func (*DeletePlantReply) ProtoReflect ¶
func (x *DeletePlantReply) ProtoReflect() protoreflect.Message
func (*DeletePlantReply) Reset ¶
func (x *DeletePlantReply) Reset()
func (*DeletePlantReply) String ¶
func (x *DeletePlantReply) String() string
type DeviceOverviewMsg ¶
type DeviceOverviewMsg struct { DeviceId int32 `protobuf:"varint,1,opt,name=deviceId,proto3" json:"deviceId,omitempty"` Type DeviceTypes `protobuf:"varint,2,opt,name=type,proto3,enum=smart_home.DeviceTypes" json:"type,omitempty"` Interface string `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` UserId string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*DeviceOverviewMsg) Descriptor
deprecated
func (*DeviceOverviewMsg) Descriptor() ([]byte, []int)
Deprecated: Use DeviceOverviewMsg.ProtoReflect.Descriptor instead.
func (*DeviceOverviewMsg) GetDeviceId ¶
func (x *DeviceOverviewMsg) GetDeviceId() int32
func (*DeviceOverviewMsg) GetInterface ¶
func (x *DeviceOverviewMsg) GetInterface() string
func (*DeviceOverviewMsg) GetName ¶
func (x *DeviceOverviewMsg) GetName() string
func (*DeviceOverviewMsg) GetType ¶
func (x *DeviceOverviewMsg) GetType() DeviceTypes
func (*DeviceOverviewMsg) GetUserId ¶
func (x *DeviceOverviewMsg) GetUserId() string
func (*DeviceOverviewMsg) ProtoMessage ¶
func (*DeviceOverviewMsg) ProtoMessage()
func (*DeviceOverviewMsg) ProtoReflect ¶
func (x *DeviceOverviewMsg) ProtoReflect() protoreflect.Message
func (*DeviceOverviewMsg) Reset ¶
func (x *DeviceOverviewMsg) Reset()
func (*DeviceOverviewMsg) String ¶
func (x *DeviceOverviewMsg) String() string
type DeviceTypes ¶
type DeviceTypes int32
const ( DeviceTypes_DEVICE_UNDEFINED DeviceTypes = 0 DeviceTypes_DEVICE_RPI DeviceTypes = 1 DeviceTypes_DEVICE_ARDUINO_NANO DeviceTypes = 2 )
func (DeviceTypes) Descriptor ¶
func (DeviceTypes) Descriptor() protoreflect.EnumDescriptor
func (DeviceTypes) Enum ¶
func (x DeviceTypes) Enum() *DeviceTypes
func (DeviceTypes) EnumDescriptor
deprecated
func (DeviceTypes) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceTypes.Descriptor instead.
func (DeviceTypes) Number ¶
func (x DeviceTypes) Number() protoreflect.EnumNumber
func (DeviceTypes) String ¶
func (x DeviceTypes) String() string
func (DeviceTypes) Type ¶
func (DeviceTypes) Type() protoreflect.EnumType
type GetAdditionalDataPlantReply ¶
type GetAdditionalDataPlantReply struct { Plant int32 `protobuf:"varint,1,opt,name=plant,proto3" json:"plant,omitempty"` Gpio *GpioIdentifierMsg `protobuf:"bytes,2,opt,name=gpio,proto3" json:"gpio,omitempty"` Humidity []*HumidityMsg `protobuf:"bytes,4,rep,name=Humidity,proto3" json:"Humidity,omitempty"` Images [][]byte `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*GetAdditionalDataPlantReply) Descriptor
deprecated
func (*GetAdditionalDataPlantReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAdditionalDataPlantReply.ProtoReflect.Descriptor instead.
func (*GetAdditionalDataPlantReply) GetGpio ¶
func (x *GetAdditionalDataPlantReply) GetGpio() *GpioIdentifierMsg
func (*GetAdditionalDataPlantReply) GetHumidity ¶
func (x *GetAdditionalDataPlantReply) GetHumidity() []*HumidityMsg
func (*GetAdditionalDataPlantReply) GetImages ¶
func (x *GetAdditionalDataPlantReply) GetImages() [][]byte
func (*GetAdditionalDataPlantReply) GetPlant ¶
func (x *GetAdditionalDataPlantReply) GetPlant() int32
func (*GetAdditionalDataPlantReply) ProtoMessage ¶
func (*GetAdditionalDataPlantReply) ProtoMessage()
func (*GetAdditionalDataPlantReply) ProtoReflect ¶
func (x *GetAdditionalDataPlantReply) ProtoReflect() protoreflect.Message
func (*GetAdditionalDataPlantReply) Reset ¶
func (x *GetAdditionalDataPlantReply) Reset()
func (*GetAdditionalDataPlantReply) String ¶
func (x *GetAdditionalDataPlantReply) String() string
type GetAdditionalDataPlantRequest ¶
type GetAdditionalDataPlantRequest struct { PlantId int32 `protobuf:"varint,1,opt,name=plantId,proto3" json:"plantId,omitempty"` // contains filtered or unexported fields }
func (*GetAdditionalDataPlantRequest) Descriptor
deprecated
func (*GetAdditionalDataPlantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAdditionalDataPlantRequest.ProtoReflect.Descriptor instead.
func (*GetAdditionalDataPlantRequest) GetPlantId ¶
func (x *GetAdditionalDataPlantRequest) GetPlantId() int32
func (*GetAdditionalDataPlantRequest) ProtoMessage ¶
func (*GetAdditionalDataPlantRequest) ProtoMessage()
func (*GetAdditionalDataPlantRequest) ProtoReflect ¶
func (x *GetAdditionalDataPlantRequest) ProtoReflect() protoreflect.Message
func (*GetAdditionalDataPlantRequest) Reset ¶
func (x *GetAdditionalDataPlantRequest) Reset()
func (*GetAdditionalDataPlantRequest) String ¶
func (x *GetAdditionalDataPlantRequest) String() string
type GetAllPlantsRequest ¶
type GetAllPlantsRequest struct {
// contains filtered or unexported fields
}
func (*GetAllPlantsRequest) Descriptor
deprecated
func (*GetAllPlantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllPlantsRequest.ProtoReflect.Descriptor instead.
func (*GetAllPlantsRequest) ProtoMessage ¶
func (*GetAllPlantsRequest) ProtoMessage()
func (*GetAllPlantsRequest) ProtoReflect ¶
func (x *GetAllPlantsRequest) ProtoReflect() protoreflect.Message
func (*GetAllPlantsRequest) Reset ¶
func (x *GetAllPlantsRequest) Reset()
func (*GetAllPlantsRequest) String ¶
func (x *GetAllPlantsRequest) String() string
type GetConnectedDevicesRequest ¶
type GetConnectedDevicesRequest struct {
// contains filtered or unexported fields
}
func (*GetConnectedDevicesRequest) Descriptor
deprecated
func (*GetConnectedDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedDevicesRequest.ProtoReflect.Descriptor instead.
func (*GetConnectedDevicesRequest) ProtoMessage ¶
func (*GetConnectedDevicesRequest) ProtoMessage()
func (*GetConnectedDevicesRequest) ProtoReflect ¶
func (x *GetConnectedDevicesRequest) ProtoReflect() protoreflect.Message
func (*GetConnectedDevicesRequest) Reset ¶
func (x *GetConnectedDevicesRequest) Reset()
func (*GetConnectedDevicesRequest) String ¶
func (x *GetConnectedDevicesRequest) String() string
type GetConnectedDevicesResponse ¶
type GetConnectedDevicesResponse struct { Devices []*DeviceOverviewMsg `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedDevicesResponse) Descriptor
deprecated
func (*GetConnectedDevicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedDevicesResponse.ProtoReflect.Descriptor instead.
func (*GetConnectedDevicesResponse) GetDevices ¶
func (x *GetConnectedDevicesResponse) GetDevices() []*DeviceOverviewMsg
func (*GetConnectedDevicesResponse) ProtoMessage ¶
func (*GetConnectedDevicesResponse) ProtoMessage()
func (*GetConnectedDevicesResponse) ProtoReflect ¶
func (x *GetConnectedDevicesResponse) ProtoReflect() protoreflect.Message
func (*GetConnectedDevicesResponse) Reset ¶
func (x *GetConnectedDevicesResponse) Reset()
func (*GetConnectedDevicesResponse) String ¶
func (x *GetConnectedDevicesResponse) String() string
type GetRequestedSensorStatesRequest ¶
type GetRequestedSensorStatesRequest struct { DeviceId int32 `protobuf:"varint,1,opt,name=deviceId,proto3" json:"deviceId,omitempty"` // contains filtered or unexported fields }
func (*GetRequestedSensorStatesRequest) Descriptor
deprecated
func (*GetRequestedSensorStatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequestedSensorStatesRequest.ProtoReflect.Descriptor instead.
func (*GetRequestedSensorStatesRequest) GetDeviceId ¶
func (x *GetRequestedSensorStatesRequest) GetDeviceId() int32
func (*GetRequestedSensorStatesRequest) ProtoMessage ¶
func (*GetRequestedSensorStatesRequest) ProtoMessage()
func (*GetRequestedSensorStatesRequest) ProtoReflect ¶
func (x *GetRequestedSensorStatesRequest) ProtoReflect() protoreflect.Message
func (*GetRequestedSensorStatesRequest) Reset ¶
func (x *GetRequestedSensorStatesRequest) Reset()
func (*GetRequestedSensorStatesRequest) String ¶
func (x *GetRequestedSensorStatesRequest) String() string
type GetRequestedSensorStatesResponse ¶
type GetRequestedSensorStatesResponse struct { Sensors []*RequestedSensorMsg `protobuf:"bytes,1,rep,name=sensors,proto3" json:"sensors,omitempty"` // contains filtered or unexported fields }
func (*GetRequestedSensorStatesResponse) Descriptor
deprecated
func (*GetRequestedSensorStatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRequestedSensorStatesResponse.ProtoReflect.Descriptor instead.
func (*GetRequestedSensorStatesResponse) GetSensors ¶
func (x *GetRequestedSensorStatesResponse) GetSensors() []*RequestedSensorMsg
func (*GetRequestedSensorStatesResponse) ProtoMessage ¶
func (*GetRequestedSensorStatesResponse) ProtoMessage()
func (*GetRequestedSensorStatesResponse) ProtoReflect ¶
func (x *GetRequestedSensorStatesResponse) ProtoReflect() protoreflect.Message
func (*GetRequestedSensorStatesResponse) Reset ¶
func (x *GetRequestedSensorStatesResponse) Reset()
func (*GetRequestedSensorStatesResponse) String ¶
func (x *GetRequestedSensorStatesResponse) String() string
type GpioIdentifierMsg ¶
type GpioIdentifierMsg struct { DeviceId int32 `protobuf:"varint,1,opt,name=deviceId,proto3" json:"deviceId,omitempty"` DeviceSerialInterfaceName string `protobuf:"bytes,2,opt,name=deviceSerialInterfaceName,proto3" json:"deviceSerialInterfaceName,omitempty"` GpioName string `protobuf:"bytes,3,opt,name=gpioName,proto3" json:"gpioName,omitempty"` // contains filtered or unexported fields }
func (*GpioIdentifierMsg) Descriptor
deprecated
func (*GpioIdentifierMsg) Descriptor() ([]byte, []int)
Deprecated: Use GpioIdentifierMsg.ProtoReflect.Descriptor instead.
func (*GpioIdentifierMsg) GetDeviceId ¶
func (x *GpioIdentifierMsg) GetDeviceId() int32
func (*GpioIdentifierMsg) GetDeviceSerialInterfaceName ¶
func (x *GpioIdentifierMsg) GetDeviceSerialInterfaceName() string
func (*GpioIdentifierMsg) GetGpioName ¶
func (x *GpioIdentifierMsg) GetGpioName() string
func (*GpioIdentifierMsg) ProtoMessage ¶
func (*GpioIdentifierMsg) ProtoMessage()
func (*GpioIdentifierMsg) ProtoReflect ¶
func (x *GpioIdentifierMsg) ProtoReflect() protoreflect.Message
func (*GpioIdentifierMsg) Reset ¶
func (x *GpioIdentifierMsg) Reset()
func (*GpioIdentifierMsg) String ¶
func (x *GpioIdentifierMsg) String() string
type GpioUser ¶
type GpioUser int32
func (GpioUser) Descriptor ¶
func (GpioUser) Descriptor() protoreflect.EnumDescriptor
func (GpioUser) EnumDescriptor
deprecated
func (GpioUser) Number ¶
func (x GpioUser) Number() protoreflect.EnumNumber
func (GpioUser) Type ¶
func (GpioUser) Type() protoreflect.EnumType
type HumidityMsg ¶
type HumidityMsg struct { Humidity int32 `protobuf:"varint,1,opt,name=humidity,proto3" json:"humidity,omitempty"` Timestamp float32 `protobuf:"fixed32,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*HumidityMsg) Descriptor
deprecated
func (*HumidityMsg) Descriptor() ([]byte, []int)
Deprecated: Use HumidityMsg.ProtoReflect.Descriptor instead.
func (*HumidityMsg) GetHumidity ¶
func (x *HumidityMsg) GetHumidity() int32
func (*HumidityMsg) GetTimestamp ¶
func (x *HumidityMsg) GetTimestamp() float32
func (*HumidityMsg) ProtoMessage ¶
func (*HumidityMsg) ProtoMessage()
func (*HumidityMsg) ProtoReflect ¶
func (x *HumidityMsg) ProtoReflect() protoreflect.Message
func (*HumidityMsg) Reset ¶
func (x *HumidityMsg) Reset()
func (*HumidityMsg) String ¶
func (x *HumidityMsg) String() string
type PlantOverviewMsg ¶
type PlantOverviewMsg struct { PlantId int32 `protobuf:"varint,1,opt,name=plantId,proto3" json:"plantId,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Info string `protobuf:"bytes,3,opt,name=Info,proto3" json:"Info,omitempty"` Gpio *GpioIdentifierMsg `protobuf:"bytes,4,opt,name=gpio,proto3" json:"gpio,omitempty"` Thumbnail []byte `protobuf:"bytes,5,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` // contains filtered or unexported fields }
func (*PlantOverviewMsg) Descriptor
deprecated
func (*PlantOverviewMsg) Descriptor() ([]byte, []int)
Deprecated: Use PlantOverviewMsg.ProtoReflect.Descriptor instead.
func (*PlantOverviewMsg) GetGpio ¶
func (x *PlantOverviewMsg) GetGpio() *GpioIdentifierMsg
func (*PlantOverviewMsg) GetInfo ¶
func (x *PlantOverviewMsg) GetInfo() string
func (*PlantOverviewMsg) GetName ¶
func (x *PlantOverviewMsg) GetName() string
func (*PlantOverviewMsg) GetPlantId ¶
func (x *PlantOverviewMsg) GetPlantId() int32
func (*PlantOverviewMsg) GetThumbnail ¶
func (x *PlantOverviewMsg) GetThumbnail() []byte
func (*PlantOverviewMsg) ProtoMessage ¶
func (*PlantOverviewMsg) ProtoMessage()
func (*PlantOverviewMsg) ProtoReflect ¶
func (x *PlantOverviewMsg) ProtoReflect() protoreflect.Message
func (*PlantOverviewMsg) Reset ¶
func (x *PlantOverviewMsg) Reset()
func (*PlantOverviewMsg) String ¶
func (x *PlantOverviewMsg) String() string
type PlantRequest ¶
type PlantRequest struct { Plant int32 `protobuf:"varint,1,opt,name=plant,proto3" json:"plant,omitempty"` // contains filtered or unexported fields }
func (*PlantRequest) Descriptor
deprecated
func (*PlantRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlantRequest.ProtoReflect.Descriptor instead.
func (*PlantRequest) GetPlant ¶
func (x *PlantRequest) GetPlant() int32
func (*PlantRequest) ProtoMessage ¶
func (*PlantRequest) ProtoMessage()
func (*PlantRequest) ProtoReflect ¶
func (x *PlantRequest) ProtoReflect() protoreflect.Message
func (*PlantRequest) Reset ¶
func (x *PlantRequest) Reset()
func (*PlantRequest) String ¶
func (x *PlantRequest) String() string
type PlantStorageClient ¶
type PlantStorageClient interface { GetOverviewAllPlants(ctx context.Context, in *GetAllPlantsRequest, opts ...grpc.CallOption) (*AllPlantsReply, error) GetAdditionalDataPlant(ctx context.Context, in *GetAdditionalDataPlantRequest, opts ...grpc.CallOption) (*GetAdditionalDataPlantReply, error) // Also used to update a plant with the same id if it already exists AddNewPlant(ctx context.Context, in *AddPlantRequest, opts ...grpc.CallOption) (*PlantOverviewMsg, error) DeletePlant(ctx context.Context, in *PlantRequest, opts ...grpc.CallOption) (*DeletePlantReply, error) GetRequestedSensorStates(ctx context.Context, in *GetRequestedSensorStatesRequest, opts ...grpc.CallOption) (*GetRequestedSensorStatesResponse, error) StoreHumidityEntry(ctx context.Context, in *StoreHumidityRequest, opts ...grpc.CallOption) (*StoreHumidityReply, error) GetConnectedDevicesOverview(ctx context.Context, in *GetConnectedDevicesRequest, opts ...grpc.CallOption) (*GetConnectedDevicesResponse, error) }
PlantStorageClient is the client API for PlantStorage 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 NewPlantStorageClient ¶
func NewPlantStorageClient(cc grpc.ClientConnInterface) PlantStorageClient
type PlantStorageServer ¶
type PlantStorageServer interface { GetOverviewAllPlants(context.Context, *GetAllPlantsRequest) (*AllPlantsReply, error) GetAdditionalDataPlant(context.Context, *GetAdditionalDataPlantRequest) (*GetAdditionalDataPlantReply, error) // Also used to update a plant with the same id if it already exists AddNewPlant(context.Context, *AddPlantRequest) (*PlantOverviewMsg, error) DeletePlant(context.Context, *PlantRequest) (*DeletePlantReply, error) GetRequestedSensorStates(context.Context, *GetRequestedSensorStatesRequest) (*GetRequestedSensorStatesResponse, error) StoreHumidityEntry(context.Context, *StoreHumidityRequest) (*StoreHumidityReply, error) GetConnectedDevicesOverview(context.Context, *GetConnectedDevicesRequest) (*GetConnectedDevicesResponse, error) // contains filtered or unexported methods }
PlantStorageServer is the server API for PlantStorage service. All implementations must embed UnimplementedPlantStorageServer for forward compatibility
type PlantThumbnailMsg ¶
type PlantThumbnailMsg struct { PlantId int32 `protobuf:"varint,1,opt,name=plantId,proto3" json:"plantId,omitempty"` Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*PlantThumbnailMsg) Descriptor
deprecated
func (*PlantThumbnailMsg) Descriptor() ([]byte, []int)
Deprecated: Use PlantThumbnailMsg.ProtoReflect.Descriptor instead.
func (*PlantThumbnailMsg) GetImage ¶
func (x *PlantThumbnailMsg) GetImage() []byte
func (*PlantThumbnailMsg) GetPlantId ¶
func (x *PlantThumbnailMsg) GetPlantId() int32
func (*PlantThumbnailMsg) ProtoMessage ¶
func (*PlantThumbnailMsg) ProtoMessage()
func (*PlantThumbnailMsg) ProtoReflect ¶
func (x *PlantThumbnailMsg) ProtoReflect() protoreflect.Message
func (*PlantThumbnailMsg) Reset ¶
func (x *PlantThumbnailMsg) Reset()
func (*PlantThumbnailMsg) String ¶
func (x *PlantThumbnailMsg) String() string
type PlantThumbnailReply ¶
type PlantThumbnailReply struct { Images []*PlantThumbnailMsg `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*PlantThumbnailReply) Descriptor
deprecated
func (*PlantThumbnailReply) Descriptor() ([]byte, []int)
Deprecated: Use PlantThumbnailReply.ProtoReflect.Descriptor instead.
func (*PlantThumbnailReply) GetImages ¶
func (x *PlantThumbnailReply) GetImages() []*PlantThumbnailMsg
func (*PlantThumbnailReply) ProtoMessage ¶
func (*PlantThumbnailReply) ProtoMessage()
func (*PlantThumbnailReply) ProtoReflect ¶
func (x *PlantThumbnailReply) ProtoReflect() protoreflect.Message
func (*PlantThumbnailReply) Reset ¶
func (x *PlantThumbnailReply) Reset()
func (*PlantThumbnailReply) String ¶
func (x *PlantThumbnailReply) String() string
type RequestedSensorMsg ¶
type RequestedSensorMsg struct { RequestId int32 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"` SensorId int32 `protobuf:"varint,2,opt,name=sensorId,proto3" json:"sensorId,omitempty"` // contains filtered or unexported fields }
func (*RequestedSensorMsg) Descriptor
deprecated
func (*RequestedSensorMsg) Descriptor() ([]byte, []int)
Deprecated: Use RequestedSensorMsg.ProtoReflect.Descriptor instead.
func (*RequestedSensorMsg) GetRequestId ¶
func (x *RequestedSensorMsg) GetRequestId() int32
func (*RequestedSensorMsg) GetSensorId ¶
func (x *RequestedSensorMsg) GetSensorId() int32
func (*RequestedSensorMsg) ProtoMessage ¶
func (*RequestedSensorMsg) ProtoMessage()
func (*RequestedSensorMsg) ProtoReflect ¶
func (x *RequestedSensorMsg) ProtoReflect() protoreflect.Message
func (*RequestedSensorMsg) Reset ¶
func (x *RequestedSensorMsg) Reset()
func (*RequestedSensorMsg) String ¶
func (x *RequestedSensorMsg) String() string
type StoreHumidityReply ¶
type StoreHumidityReply struct {
// contains filtered or unexported fields
}
func (*StoreHumidityReply) Descriptor
deprecated
func (*StoreHumidityReply) Descriptor() ([]byte, []int)
Deprecated: Use StoreHumidityReply.ProtoReflect.Descriptor instead.
func (*StoreHumidityReply) ProtoMessage ¶
func (*StoreHumidityReply) ProtoMessage()
func (*StoreHumidityReply) ProtoReflect ¶
func (x *StoreHumidityReply) ProtoReflect() protoreflect.Message
func (*StoreHumidityReply) Reset ¶
func (x *StoreHumidityReply) Reset()
func (*StoreHumidityReply) String ¶
func (x *StoreHumidityReply) String() string
type StoreHumidityRequest ¶
type StoreHumidityRequest struct { RequestNumber int32 `protobuf:"varint,1,opt,name=requestNumber,proto3" json:"requestNumber,omitempty"` Humidity int32 `protobuf:"varint,2,opt,name=humidity,proto3" json:"humidity,omitempty"` // contains filtered or unexported fields }
func (*StoreHumidityRequest) Descriptor
deprecated
func (*StoreHumidityRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreHumidityRequest.ProtoReflect.Descriptor instead.
func (*StoreHumidityRequest) GetHumidity ¶
func (x *StoreHumidityRequest) GetHumidity() int32
func (*StoreHumidityRequest) GetRequestNumber ¶
func (x *StoreHumidityRequest) GetRequestNumber() int32
func (*StoreHumidityRequest) ProtoMessage ¶
func (*StoreHumidityRequest) ProtoMessage()
func (*StoreHumidityRequest) ProtoReflect ¶
func (x *StoreHumidityRequest) ProtoReflect() protoreflect.Message
func (*StoreHumidityRequest) Reset ¶
func (x *StoreHumidityRequest) Reset()
func (*StoreHumidityRequest) String ¶
func (x *StoreHumidityRequest) String() string
type UnimplementedPlantStorageServer ¶
type UnimplementedPlantStorageServer struct { }
UnimplementedPlantStorageServer must be embedded to have forward compatible implementations.
func (UnimplementedPlantStorageServer) AddNewPlant ¶
func (UnimplementedPlantStorageServer) AddNewPlant(context.Context, *AddPlantRequest) (*PlantOverviewMsg, error)
func (UnimplementedPlantStorageServer) DeletePlant ¶
func (UnimplementedPlantStorageServer) DeletePlant(context.Context, *PlantRequest) (*DeletePlantReply, error)
func (UnimplementedPlantStorageServer) GetAdditionalDataPlant ¶
func (UnimplementedPlantStorageServer) GetAdditionalDataPlant(context.Context, *GetAdditionalDataPlantRequest) (*GetAdditionalDataPlantReply, error)
func (UnimplementedPlantStorageServer) GetConnectedDevicesOverview ¶
func (UnimplementedPlantStorageServer) GetConnectedDevicesOverview(context.Context, *GetConnectedDevicesRequest) (*GetConnectedDevicesResponse, error)
func (UnimplementedPlantStorageServer) GetOverviewAllPlants ¶
func (UnimplementedPlantStorageServer) GetOverviewAllPlants(context.Context, *GetAllPlantsRequest) (*AllPlantsReply, error)
func (UnimplementedPlantStorageServer) GetRequestedSensorStates ¶
func (UnimplementedPlantStorageServer) GetRequestedSensorStates(context.Context, *GetRequestedSensorStatesRequest) (*GetRequestedSensorStatesResponse, error)
func (UnimplementedPlantStorageServer) StoreHumidityEntry ¶
func (UnimplementedPlantStorageServer) StoreHumidityEntry(context.Context, *StoreHumidityRequest) (*StoreHumidityReply, error)
type UnsafePlantStorageServer ¶
type UnsafePlantStorageServer interface {
// contains filtered or unexported methods
}
UnsafePlantStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PlantStorageServer will result in compilation errors.