proto

package
v0.0.0-...-5189fb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 17 Imported by: 2

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_humidityStorage_proto protoreflect.FileDescriptor
View Source
var File_plantStorage_proto protoreflect.FileDescriptor
View Source
var HumidityStorage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "smart_home.HumidityStorage",
	HandlerType: (*HumidityStorageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "storeHumidityEntry",
			Handler:    _HumidityStorage_StoreHumidityEntry_Handler,
		},
		{
			MethodName: "GetActiveSensorsForDevice",
			Handler:    _HumidityStorage_GetActiveSensorsForDevice_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "humidityStorage.proto",
}

HumidityStorage_ServiceDesc is the grpc.ServiceDesc for HumidityStorage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
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: "getConnectedSensorOverview",
			Handler:    _PlantStorage_GetConnectedSensorOverview_Handler,
		},
		{
			MethodName: "GetDataForSensor",
			Handler:    _PlantStorage_GetDataForSensor_Handler,
		},
		{
			MethodName: "GetSensorsForDevice",
			Handler:    _PlantStorage_GetSensorsForDevice_Handler,
		},
		{
			MethodName: "SetActiveSensorsForDevice",
			Handler:    _PlantStorage_SetActiveSensorsForDevice_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 RegisterHumidityStorageServer

func RegisterHumidityStorageServer(s grpc.ServiceRegistrar, srv HumidityStorageServer)

func RegisterPlantStorageHandler

func RegisterPlantStorageHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPlantStorageHandler registers the http handlers for service PlantStorage to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPlantStorageHandlerClient

func RegisterPlantStorageHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlantStorageClient) error

RegisterPlantStorageHandlerClient registers the http handlers for service PlantStorage to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PlantStorageClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PlantStorageClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PlantStorageClient" to call the correct interceptors.

func RegisterPlantStorageHandlerFromEndpoint

func RegisterPlantStorageHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPlantStorageHandlerFromEndpoint is same as RegisterPlantStorageHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPlantStorageHandlerServer

func RegisterPlantStorageHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlantStorageServer) error

RegisterPlantStorageHandlerServer registers the http handlers for service PlantStorage to "mux". UnaryRPC :call PlantStorageServer 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 RegisterPlantStorageHandlerFromEndpoint instead.

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"`
	SensorId int32       `protobuf:"varint,4,opt,name=sensorId,proto3" json:"sensorId,omitempty"`
	Images   []*ImageMsg `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) GetImages

func (x *AddPlantRequest) GetImages() []*ImageMsg

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) GetSensorId

func (x *AddPlantRequest) GetSensorId() 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 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) 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

type GetActiveSensorsReply

type GetActiveSensorsReply struct {
	Sensors     []int32 `protobuf:"varint,1,rep,name=sensors" json:"sensors,omitempty"`
	SensorCount *uint32 `protobuf:"varint,2,req,name=sensorCount" json:"sensorCount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActiveSensorsReply) Descriptor deprecated

func (*GetActiveSensorsReply) Descriptor() ([]byte, []int)

Deprecated: Use GetActiveSensorsReply.ProtoReflect.Descriptor instead.

func (*GetActiveSensorsReply) GetSensorCount

func (x *GetActiveSensorsReply) GetSensorCount() uint32

func (*GetActiveSensorsReply) GetSensors

func (x *GetActiveSensorsReply) GetSensors() []int32

func (*GetActiveSensorsReply) ProtoMessage

func (*GetActiveSensorsReply) ProtoMessage()

func (*GetActiveSensorsReply) ProtoReflect

func (x *GetActiveSensorsReply) ProtoReflect() protoreflect.Message

func (*GetActiveSensorsReply) Reset

func (x *GetActiveSensorsReply) Reset()

func (*GetActiveSensorsReply) String

func (x *GetActiveSensorsReply) String() string

type GetActiveSensorsRequest

type GetActiveSensorsRequest struct {

	// Unique address of the device
	DeviceMAC *string `protobuf:"bytes,1,req,name=deviceMAC" json:"deviceMAC,omitempty"`
	// set of all available sensors on hte device
	AvailableSensors []int32 `protobuf:"varint,2,rep,name=availableSensors" json:"availableSensors,omitempty"`
	SensorCount      *uint32 `protobuf:"varint,3,req,name=sensorCount" json:"sensorCount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActiveSensorsRequest) Descriptor deprecated

func (*GetActiveSensorsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetActiveSensorsRequest.ProtoReflect.Descriptor instead.

func (*GetActiveSensorsRequest) GetAvailableSensors

func (x *GetActiveSensorsRequest) GetAvailableSensors() []int32

func (*GetActiveSensorsRequest) GetDeviceMAC

func (x *GetActiveSensorsRequest) GetDeviceMAC() string

func (*GetActiveSensorsRequest) GetSensorCount

func (x *GetActiveSensorsRequest) GetSensorCount() uint32

func (*GetActiveSensorsRequest) ProtoMessage

func (*GetActiveSensorsRequest) ProtoMessage()

func (*GetActiveSensorsRequest) ProtoReflect

func (x *GetActiveSensorsRequest) ProtoReflect() protoreflect.Message

func (*GetActiveSensorsRequest) Reset

func (x *GetActiveSensorsRequest) Reset()

func (*GetActiveSensorsRequest) String

func (x *GetActiveSensorsRequest) String() string

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   []*ImageMsg        `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 (*GetAdditionalDataPlantReply) GetHumidity

func (x *GetAdditionalDataPlantReply) GetHumidity() []*HumidityMsg

func (*GetAdditionalDataPlantReply) GetImages

func (x *GetAdditionalDataPlantReply) GetImages() []*ImageMsg

func (*GetAdditionalDataPlantReply) GetPlant

func (x *GetAdditionalDataPlantReply) GetPlant() int32

func (*GetAdditionalDataPlantReply) ProtoMessage

func (*GetAdditionalDataPlantReply) ProtoMessage()

func (*GetAdditionalDataPlantReply) ProtoReflect

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 (*GetAdditionalDataPlantRequest) Reset

func (x *GetAdditionalDataPlantRequest) Reset()

func (*GetAdditionalDataPlantRequest) 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 GetDataForSensorReply

type GetDataForSensorReply struct {
	Data []*HumidityMsg `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDataForSensorReply) Descriptor deprecated

func (*GetDataForSensorReply) Descriptor() ([]byte, []int)

Deprecated: Use GetDataForSensorReply.ProtoReflect.Descriptor instead.

func (*GetDataForSensorReply) GetData

func (x *GetDataForSensorReply) GetData() []*HumidityMsg

func (*GetDataForSensorReply) ProtoMessage

func (*GetDataForSensorReply) ProtoMessage()

func (*GetDataForSensorReply) ProtoReflect

func (x *GetDataForSensorReply) ProtoReflect() protoreflect.Message

func (*GetDataForSensorReply) Reset

func (x *GetDataForSensorReply) Reset()

func (*GetDataForSensorReply) String

func (x *GetDataForSensorReply) String() string

type GetDataForSensorRequest

type GetDataForSensorRequest struct {
	DeviceMAC string `protobuf:"bytes,1,opt,name=deviceMAC,proto3" json:"deviceMAC,omitempty"`
	SensorId  int32  `protobuf:"varint,2,opt,name=sensorId,proto3" json:"sensorId,omitempty"`
	Limit     *int64 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDataForSensorRequest) Descriptor deprecated

func (*GetDataForSensorRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDataForSensorRequest.ProtoReflect.Descriptor instead.

func (*GetDataForSensorRequest) GetDeviceMAC

func (x *GetDataForSensorRequest) GetDeviceMAC() string

func (*GetDataForSensorRequest) GetLimit

func (x *GetDataForSensorRequest) GetLimit() int64

func (*GetDataForSensorRequest) GetSensorId

func (x *GetDataForSensorRequest) GetSensorId() int32

func (*GetDataForSensorRequest) ProtoMessage

func (*GetDataForSensorRequest) ProtoMessage()

func (*GetDataForSensorRequest) ProtoReflect

func (x *GetDataForSensorRequest) ProtoReflect() protoreflect.Message

func (*GetDataForSensorRequest) Reset

func (x *GetDataForSensorRequest) Reset()

func (*GetDataForSensorRequest) String

func (x *GetDataForSensorRequest) String() string

type GetSensorOverviewReply

type GetSensorOverviewReply struct {
	Sensors []*SensorMsg `protobuf:"bytes,1,rep,name=sensors,proto3" json:"sensors,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSensorOverviewReply) Descriptor deprecated

func (*GetSensorOverviewReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSensorOverviewReply.ProtoReflect.Descriptor instead.

func (*GetSensorOverviewReply) GetSensors

func (x *GetSensorOverviewReply) GetSensors() []*SensorMsg

func (*GetSensorOverviewReply) ProtoMessage

func (*GetSensorOverviewReply) ProtoMessage()

func (*GetSensorOverviewReply) ProtoReflect

func (x *GetSensorOverviewReply) ProtoReflect() protoreflect.Message

func (*GetSensorOverviewReply) Reset

func (x *GetSensorOverviewReply) Reset()

func (*GetSensorOverviewReply) String

func (x *GetSensorOverviewReply) String() string

type GetSensorOverviewRequest

type GetSensorOverviewRequest struct {
	// contains filtered or unexported fields
}

func (*GetSensorOverviewRequest) Descriptor deprecated

func (*GetSensorOverviewRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSensorOverviewRequest.ProtoReflect.Descriptor instead.

func (*GetSensorOverviewRequest) ProtoMessage

func (*GetSensorOverviewRequest) ProtoMessage()

func (*GetSensorOverviewRequest) ProtoReflect

func (x *GetSensorOverviewRequest) ProtoReflect() protoreflect.Message

func (*GetSensorOverviewRequest) Reset

func (x *GetSensorOverviewRequest) Reset()

func (*GetSensorOverviewRequest) String

func (x *GetSensorOverviewRequest) String() string

type GetSensorsForDeviceReply

type GetSensorsForDeviceReply struct {
	Sensors []uint32 `protobuf:"varint,1,rep,packed,name=sensors,proto3" json:"sensors,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSensorsForDeviceReply) Descriptor deprecated

func (*GetSensorsForDeviceReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSensorsForDeviceReply.ProtoReflect.Descriptor instead.

func (*GetSensorsForDeviceReply) GetSensors

func (x *GetSensorsForDeviceReply) GetSensors() []uint32

func (*GetSensorsForDeviceReply) ProtoMessage

func (*GetSensorsForDeviceReply) ProtoMessage()

func (*GetSensorsForDeviceReply) ProtoReflect

func (x *GetSensorsForDeviceReply) ProtoReflect() protoreflect.Message

func (*GetSensorsForDeviceReply) Reset

func (x *GetSensorsForDeviceReply) Reset()

func (*GetSensorsForDeviceReply) String

func (x *GetSensorsForDeviceReply) String() string

type GetSensorsForDeviceRequest

type GetSensorsForDeviceRequest struct {
	DeviceMAC string `protobuf:"bytes,1,opt,name=deviceMAC,proto3" json:"deviceMAC,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSensorsForDeviceRequest) Descriptor deprecated

func (*GetSensorsForDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSensorsForDeviceRequest.ProtoReflect.Descriptor instead.

func (*GetSensorsForDeviceRequest) GetDeviceMAC

func (x *GetSensorsForDeviceRequest) GetDeviceMAC() string

func (*GetSensorsForDeviceRequest) ProtoMessage

func (*GetSensorsForDeviceRequest) ProtoMessage()

func (*GetSensorsForDeviceRequest) ProtoReflect

func (*GetSensorsForDeviceRequest) Reset

func (x *GetSensorsForDeviceRequest) Reset()

func (*GetSensorsForDeviceRequest) String

func (x *GetSensorsForDeviceRequest) String() string

type GpioIdentifierMsg

type GpioIdentifierMsg struct {
	SensorId                  int32  `protobuf:"varint,1,opt,name=sensorId,proto3" json:"sensorId,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) GetDeviceSerialInterfaceName

func (x *GpioIdentifierMsg) GetDeviceSerialInterfaceName() string

func (*GpioIdentifierMsg) GetGpioName

func (x *GpioIdentifierMsg) GetGpioName() string

func (*GpioIdentifierMsg) GetSensorId

func (x *GpioIdentifierMsg) GetSensorId() int32

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
const (
	GpioUser_GPIO_USER_UNDEFINED GpioUser = 0
	GpioUser_GPIO_USER_PLANT     GpioUser = 1
	GpioUser_GPIO_USER_RELAIS    GpioUser = 2
)

func (GpioUser) Descriptor

func (GpioUser) Descriptor() protoreflect.EnumDescriptor

func (GpioUser) Enum

func (x GpioUser) Enum() *GpioUser

func (GpioUser) EnumDescriptor deprecated

func (GpioUser) EnumDescriptor() ([]byte, []int)

Deprecated: Use GpioUser.Descriptor instead.

func (GpioUser) Number

func (x GpioUser) Number() protoreflect.EnumNumber

func (GpioUser) String

func (x GpioUser) String() string

func (GpioUser) Type

type HumidityMsg

type HumidityMsg struct {
	Humidity  int32                  `protobuf:"varint,1,opt,name=humidity,proto3" json:"humidity,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,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() *timestamppb.Timestamp

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 HumidityStorageClient

type HumidityStorageClient interface {
	StoreHumidityEntry(ctx context.Context, in *StoreHumidityRequest, opts ...grpc.CallOption) (*StoreHumidityReply, error)
	GetActiveSensorsForDevice(ctx context.Context, in *GetActiveSensorsRequest, opts ...grpc.CallOption) (*GetActiveSensorsReply, error)
}

HumidityStorageClient is the client API for HumidityStorage 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.

type HumidityStorageServer

type HumidityStorageServer interface {
	StoreHumidityEntry(context.Context, *StoreHumidityRequest) (*StoreHumidityReply, error)
	GetActiveSensorsForDevice(context.Context, *GetActiveSensorsRequest) (*GetActiveSensorsReply, error)
	// contains filtered or unexported methods
}

HumidityStorageServer is the server API for HumidityStorage service. All implementations must embed UnimplementedHumidityStorageServer for forward compatibility

type ImageMsg

type ImageMsg struct {
	ImageId    int32  `protobuf:"varint,1,opt,name=imageId,proto3" json:"imageId,omitempty"`
	ImageBytes []byte `protobuf:"bytes,2,opt,name=imageBytes,proto3" json:"imageBytes,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageMsg) Descriptor deprecated

func (*ImageMsg) Descriptor() ([]byte, []int)

Deprecated: Use ImageMsg.ProtoReflect.Descriptor instead.

func (*ImageMsg) GetImageBytes

func (x *ImageMsg) GetImageBytes() []byte

func (*ImageMsg) GetImageId

func (x *ImageMsg) GetImageId() int32

func (*ImageMsg) ProtoMessage

func (*ImageMsg) ProtoMessage()

func (*ImageMsg) ProtoReflect

func (x *ImageMsg) ProtoReflect() protoreflect.Message

func (*ImageMsg) Reset

func (x *ImageMsg) Reset()

func (*ImageMsg) String

func (x *ImageMsg) 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)
	// Get an overview of all Devices given by a mac address and the sensorlots which are avilable
	GetConnectedSensorOverview(ctx context.Context, in *GetSensorOverviewRequest, opts ...grpc.CallOption) (*GetSensorOverviewReply, error)
	// get the data for a sensor given by its sensorslot and the mac address of the connected device
	GetDataForSensor(ctx context.Context, in *GetDataForSensorRequest, opts ...grpc.CallOption) (*GetDataForSensorReply, error)
	// Get the list of all Sensor Ids which are available for a device given by its mac address
	GetSensorsForDevice(ctx context.Context, in *GetSensorsForDeviceRequest, opts ...grpc.CallOption) (*GetSensorsForDeviceReply, error)
	// Set the list of sensors which are available at a device which should measure their values
	SetActiveSensorsForDevice(ctx context.Context, in *SetActiveSensorsForDeviceRequest, opts ...grpc.CallOption) (*SetActiveSensorsForDeviceReply, 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.

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)
	// Get an overview of all Devices given by a mac address and the sensorlots which are avilable
	GetConnectedSensorOverview(context.Context, *GetSensorOverviewRequest) (*GetSensorOverviewReply, error)
	// get the data for a sensor given by its sensorslot and the mac address of the connected device
	GetDataForSensor(context.Context, *GetDataForSensorRequest) (*GetDataForSensorReply, error)
	// Get the list of all Sensor Ids which are available for a device given by its mac address
	GetSensorsForDevice(context.Context, *GetSensorsForDeviceRequest) (*GetSensorsForDeviceReply, error)
	// Set the list of sensors which are available at a device which should measure their values
	SetActiveSensorsForDevice(context.Context, *SetActiveSensorsForDeviceRequest) (*SetActiveSensorsForDeviceReply, 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 SensorMsg

type SensorMsg struct {
	DeviceMAC      string `protobuf:"bytes,1,opt,name=deviceMAC,proto3" json:"deviceMAC,omitempty"`
	SensorId       int32  `protobuf:"varint,2,opt,name=sensorId,proto3" json:"sensorId,omitempty"`
	SensorSlot     int32  `protobuf:"varint,3,opt,name=sensorSlot,proto3" json:"sensorSlot,omitempty"`
	InUse          bool   `protobuf:"varint,4,opt,name=inUse,proto3" json:"inUse,omitempty"`
	ConnectedPlant int32  `protobuf:"varint,5,opt,name=connectedPlant,proto3" json:"connectedPlant,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorMsg) Descriptor deprecated

func (*SensorMsg) Descriptor() ([]byte, []int)

Deprecated: Use SensorMsg.ProtoReflect.Descriptor instead.

func (*SensorMsg) GetConnectedPlant

func (x *SensorMsg) GetConnectedPlant() int32

func (*SensorMsg) GetDeviceMAC

func (x *SensorMsg) GetDeviceMAC() string

func (*SensorMsg) GetInUse

func (x *SensorMsg) GetInUse() bool

func (*SensorMsg) GetSensorId

func (x *SensorMsg) GetSensorId() int32

func (*SensorMsg) GetSensorSlot

func (x *SensorMsg) GetSensorSlot() int32

func (*SensorMsg) ProtoMessage

func (*SensorMsg) ProtoMessage()

func (*SensorMsg) ProtoReflect

func (x *SensorMsg) ProtoReflect() protoreflect.Message

func (*SensorMsg) Reset

func (x *SensorMsg) Reset()

func (*SensorMsg) String

func (x *SensorMsg) String() string

type SetActiveSensorsForDeviceReply

type SetActiveSensorsForDeviceReply struct {
	// contains filtered or unexported fields
}

func (*SetActiveSensorsForDeviceReply) Descriptor deprecated

func (*SetActiveSensorsForDeviceReply) Descriptor() ([]byte, []int)

Deprecated: Use SetActiveSensorsForDeviceReply.ProtoReflect.Descriptor instead.

func (*SetActiveSensorsForDeviceReply) ProtoMessage

func (*SetActiveSensorsForDeviceReply) ProtoMessage()

func (*SetActiveSensorsForDeviceReply) ProtoReflect

func (*SetActiveSensorsForDeviceReply) Reset

func (x *SetActiveSensorsForDeviceReply) Reset()

func (*SetActiveSensorsForDeviceReply) String

type SetActiveSensorsForDeviceRequest

type SetActiveSensorsForDeviceRequest struct {
	DeviceMAC string   `protobuf:"bytes,1,opt,name=deviceMAC,proto3" json:"deviceMAC,omitempty"`
	Activated []uint32 `protobuf:"varint,2,rep,packed,name=activated,proto3" json:"activated,omitempty"`
	// contains filtered or unexported fields
}

func (*SetActiveSensorsForDeviceRequest) Descriptor deprecated

func (*SetActiveSensorsForDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetActiveSensorsForDeviceRequest.ProtoReflect.Descriptor instead.

func (*SetActiveSensorsForDeviceRequest) GetActivated

func (x *SetActiveSensorsForDeviceRequest) GetActivated() []uint32

func (*SetActiveSensorsForDeviceRequest) GetDeviceMAC

func (x *SetActiveSensorsForDeviceRequest) GetDeviceMAC() string

func (*SetActiveSensorsForDeviceRequest) ProtoMessage

func (*SetActiveSensorsForDeviceRequest) ProtoMessage()

func (*SetActiveSensorsForDeviceRequest) ProtoReflect

func (*SetActiveSensorsForDeviceRequest) Reset

func (*SetActiveSensorsForDeviceRequest) 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 {
	DeviceMAC         *string `protobuf:"bytes,1,req,name=deviceMAC" json:"deviceMAC,omitempty"`
	SensorId          *int32  `protobuf:"varint,2,req,name=sensorId" json:"sensorId,omitempty"`
	Humidity          *int32  `protobuf:"varint,3,req,name=humidity" json:"humidity,omitempty"`
	HumidityInPercent *int32  `protobuf:"varint,4,req,name=humidityInPercent" json:"humidityInPercent,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreHumidityRequest) Descriptor deprecated

func (*StoreHumidityRequest) Descriptor() ([]byte, []int)

Deprecated: Use StoreHumidityRequest.ProtoReflect.Descriptor instead.

func (*StoreHumidityRequest) GetDeviceMAC

func (x *StoreHumidityRequest) GetDeviceMAC() string

func (*StoreHumidityRequest) GetHumidity

func (x *StoreHumidityRequest) GetHumidity() int32

func (*StoreHumidityRequest) GetHumidityInPercent

func (x *StoreHumidityRequest) GetHumidityInPercent() int32

func (*StoreHumidityRequest) GetSensorId

func (x *StoreHumidityRequest) GetSensorId() 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 UnimplementedHumidityStorageServer

type UnimplementedHumidityStorageServer struct {
}

UnimplementedHumidityStorageServer must be embedded to have forward compatible implementations.

func (UnimplementedHumidityStorageServer) GetActiveSensorsForDevice

func (UnimplementedHumidityStorageServer) StoreHumidityEntry

type UnimplementedPlantStorageServer

type UnimplementedPlantStorageServer struct {
}

UnimplementedPlantStorageServer must be embedded to have forward compatible implementations.

func (UnimplementedPlantStorageServer) AddNewPlant

func (UnimplementedPlantStorageServer) DeletePlant

func (UnimplementedPlantStorageServer) GetConnectedSensorOverview

func (UnimplementedPlantStorageServer) GetDataForSensor

func (UnimplementedPlantStorageServer) GetOverviewAllPlants

func (UnimplementedPlantStorageServer) GetSensorsForDevice

type UnsafeHumidityStorageServer

type UnsafeHumidityStorageServer interface {
	// contains filtered or unexported methods
}

UnsafeHumidityStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HumidityStorageServer will result in compilation errors.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL