Documentation ¶
Index ¶
- Variables
- func RegisterSerialReaderServer(s grpc.ServiceRegistrar, srv SerialReaderServer)
- type GetTimeSeriesData
- type SerialReaderClient
- type SerialReaderServer
- type SparkFunWeatherShieldTimeSeriesData
- func (*SparkFunWeatherShieldTimeSeriesData) Descriptor() ([]byte, []int)deprecated
- func (x *SparkFunWeatherShieldTimeSeriesData) GetAltitudeUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetAltitudeValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetHumidityUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetHumidityValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetIlluminanceUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetIlluminanceValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetPressureUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetPressureValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetStatus() bool
- func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureUnit() string
- func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureValue() float32
- func (x *SparkFunWeatherShieldTimeSeriesData) GetTimestamp() *timestamp.Timestamp
- func (*SparkFunWeatherShieldTimeSeriesData) ProtoMessage()
- func (x *SparkFunWeatherShieldTimeSeriesData) ProtoReflect() protoreflect.Message
- func (x *SparkFunWeatherShieldTimeSeriesData) Reset()
- func (x *SparkFunWeatherShieldTimeSeriesData) String() string
- type UnimplementedSerialReaderServer
- type UnsafeSerialReaderServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_serialreader_proto protoreflect.FileDescriptor
var SerialReader_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.SerialReader", HandlerType: (*SerialReaderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSparkFunWeatherShieldData", Handler: _SerialReader_GetSparkFunWeatherShieldData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/serialreader.proto", }
SerialReader_ServiceDesc is the grpc.ServiceDesc for SerialReader service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSerialReaderServer ¶
func RegisterSerialReaderServer(s grpc.ServiceRegistrar, srv SerialReaderServer)
Types ¶
type GetTimeSeriesData ¶
type GetTimeSeriesData struct {
// contains filtered or unexported fields
}
func (*GetTimeSeriesData) Descriptor
deprecated
func (*GetTimeSeriesData) Descriptor() ([]byte, []int)
Deprecated: Use GetTimeSeriesData.ProtoReflect.Descriptor instead.
func (*GetTimeSeriesData) ProtoMessage ¶
func (*GetTimeSeriesData) ProtoMessage()
func (*GetTimeSeriesData) ProtoReflect ¶
func (x *GetTimeSeriesData) ProtoReflect() protoreflect.Message
func (*GetTimeSeriesData) Reset ¶
func (x *GetTimeSeriesData) Reset()
func (*GetTimeSeriesData) String ¶
func (x *GetTimeSeriesData) String() string
type SerialReaderClient ¶
type SerialReaderClient interface {
GetSparkFunWeatherShieldData(ctx context.Context, in *GetTimeSeriesData, opts ...grpc.CallOption) (*SparkFunWeatherShieldTimeSeriesData, error)
}
SerialReaderClient is the client API for SerialReader service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSerialReaderClient ¶
func NewSerialReaderClient(cc grpc.ClientConnInterface) SerialReaderClient
type SerialReaderServer ¶
type SerialReaderServer interface { GetSparkFunWeatherShieldData(context.Context, *GetTimeSeriesData) (*SparkFunWeatherShieldTimeSeriesData, error) // contains filtered or unexported methods }
SerialReaderServer is the server API for SerialReader service. All implementations must embed UnimplementedSerialReaderServer for forward compatibility
type SparkFunWeatherShieldTimeSeriesData ¶
type SparkFunWeatherShieldTimeSeriesData struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` HumidityValue float32 `protobuf:"fixed32,3,opt,name=humidityValue,proto3" json:"humidityValue,omitempty"` HumidityUnit string `protobuf:"bytes,4,opt,name=humidityUnit,proto3" json:"humidityUnit,omitempty"` TemperatureValue float32 `protobuf:"fixed32,5,opt,name=temperatureValue,proto3" json:"temperatureValue,omitempty"` TemperatureUnit string `protobuf:"bytes,6,opt,name=temperatureUnit,proto3" json:"temperatureUnit,omitempty"` PressureValue float32 `protobuf:"fixed32,7,opt,name=pressureValue,proto3" json:"pressureValue,omitempty"` PressureUnit string `protobuf:"bytes,8,opt,name=pressureUnit,proto3" json:"pressureUnit,omitempty"` TemperatureBackupValue float32 `protobuf:"fixed32,9,opt,name=temperatureBackupValue,proto3" json:"temperatureBackupValue,omitempty"` TemperatureBackupUnit string `protobuf:"bytes,10,opt,name=temperatureBackupUnit,proto3" json:"temperatureBackupUnit,omitempty"` AltitudeValue float32 `protobuf:"fixed32,11,opt,name=altitudeValue,proto3" json:"altitudeValue,omitempty"` AltitudeUnit string `protobuf:"bytes,12,opt,name=altitudeUnit,proto3" json:"altitudeUnit,omitempty"` IlluminanceValue float32 `protobuf:"fixed32,13,opt,name=illuminanceValue,proto3" json:"illuminanceValue,omitempty"` IlluminanceUnit string `protobuf:"bytes,14,opt,name=illuminanceUnit,proto3" json:"illuminanceUnit,omitempty"` SoilMoistureValue float32 `protobuf:"fixed32,15,opt,name=soilMoistureValue,proto3" json:"soilMoistureValue,omitempty"` SoilMoistureUnit string `protobuf:"bytes,16,opt,name=soilMoistureUnit,proto3" json:"soilMoistureUnit,omitempty"` // contains filtered or unexported fields }
func (*SparkFunWeatherShieldTimeSeriesData) Descriptor
deprecated
func (*SparkFunWeatherShieldTimeSeriesData) Descriptor() ([]byte, []int)
Deprecated: Use SparkFunWeatherShieldTimeSeriesData.ProtoReflect.Descriptor instead.
func (*SparkFunWeatherShieldTimeSeriesData) GetAltitudeUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetAltitudeUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetAltitudeValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetAltitudeValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetHumidityUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetHumidityUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetHumidityValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetHumidityValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetIlluminanceUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetIlluminanceUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetIlluminanceValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetIlluminanceValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetPressureUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetPressureUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetPressureValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetPressureValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetSoilMoistureValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetStatus ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetStatus() bool
func (*SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureBackupValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetTemperatureUnit ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureUnit() string
func (*SparkFunWeatherShieldTimeSeriesData) GetTemperatureValue ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetTemperatureValue() float32
func (*SparkFunWeatherShieldTimeSeriesData) GetTimestamp ¶
func (x *SparkFunWeatherShieldTimeSeriesData) GetTimestamp() *timestamp.Timestamp
func (*SparkFunWeatherShieldTimeSeriesData) ProtoMessage ¶
func (*SparkFunWeatherShieldTimeSeriesData) ProtoMessage()
func (*SparkFunWeatherShieldTimeSeriesData) ProtoReflect ¶
func (x *SparkFunWeatherShieldTimeSeriesData) ProtoReflect() protoreflect.Message
func (*SparkFunWeatherShieldTimeSeriesData) Reset ¶
func (x *SparkFunWeatherShieldTimeSeriesData) Reset()
func (*SparkFunWeatherShieldTimeSeriesData) String ¶
func (x *SparkFunWeatherShieldTimeSeriesData) String() string
type UnimplementedSerialReaderServer ¶
type UnimplementedSerialReaderServer struct { }
UnimplementedSerialReaderServer must be embedded to have forward compatible implementations.
func (UnimplementedSerialReaderServer) GetSparkFunWeatherShieldData ¶
func (UnimplementedSerialReaderServer) GetSparkFunWeatherShieldData(context.Context, *GetTimeSeriesData) (*SparkFunWeatherShieldTimeSeriesData, error)
type UnsafeSerialReaderServer ¶
type UnsafeSerialReaderServer interface {
// contains filtered or unexported methods
}
UnsafeSerialReaderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SerialReaderServer will result in compilation errors.