Documentation ¶
Index ¶
- Variables
- func RegisterDSServer(s grpc.ServiceRegistrar, srv DSServer)
- func RegisterGPIOServer(s grpc.ServiceRegistrar, srv GPIOServer)
- func RegisterHeaterServer(s grpc.ServiceRegistrar, srv HeaterServer)
- func RegisterPTServer(s grpc.ServiceRegistrar, srv PTServer)
- type DSClient
- type DSConfig
- func (*DSConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DSConfig) GetCorrection() float32
- func (x *DSConfig) GetEnabled() bool
- func (x *DSConfig) GetID() string
- func (x *DSConfig) GetName() string
- func (x *DSConfig) GetPollInterval() int32
- func (x *DSConfig) GetResolution() int32
- func (x *DSConfig) GetSamples() uint32
- func (*DSConfig) ProtoMessage()
- func (x *DSConfig) ProtoReflect() protoreflect.Message
- func (x *DSConfig) Reset()
- func (x *DSConfig) String() string
- type DSConfigs
- type DSReadings
- func (*DSReadings) Descriptor() ([]byte, []int)deprecated
- func (x *DSReadings) GetAverage() float32
- func (x *DSReadings) GetError() string
- func (x *DSReadings) GetID() string
- func (x *DSReadings) GetStampMillis() int64
- func (x *DSReadings) GetTemperature() float32
- func (*DSReadings) ProtoMessage()
- func (x *DSReadings) ProtoReflect() protoreflect.Message
- func (x *DSReadings) Reset()
- func (x *DSReadings) String() string
- type DSServer
- type DSTemperature
- type DSTemperatures
- type GPIOClient
- type GPIOConfig
- func (*GPIOConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GPIOConfig) GetActiveLevel() int32
- func (x *GPIOConfig) GetDirection() int32
- func (x *GPIOConfig) GetID() string
- func (x *GPIOConfig) GetValue() bool
- func (*GPIOConfig) ProtoMessage()
- func (x *GPIOConfig) ProtoReflect() protoreflect.Message
- func (x *GPIOConfig) Reset()
- func (x *GPIOConfig) String() string
- type GPIOConfigs
- type GPIOServer
- type HeaterClient
- type HeaterConfig
- func (*HeaterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HeaterConfig) GetEnabled() bool
- func (x *HeaterConfig) GetID() string
- func (x *HeaterConfig) GetPower() uint32
- func (*HeaterConfig) ProtoMessage()
- func (x *HeaterConfig) ProtoReflect() protoreflect.Message
- func (x *HeaterConfig) Reset()
- func (x *HeaterConfig) String() string
- type HeaterConfigs
- type HeaterServer
- type PTClient
- type PTConfig
- func (*PTConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PTConfig) GetAsync() bool
- func (x *PTConfig) GetCorrection() float32
- func (x *PTConfig) GetEnabled() bool
- func (x *PTConfig) GetID() string
- func (x *PTConfig) GetName() string
- func (x *PTConfig) GetPollInterval() int32
- func (x *PTConfig) GetSamples() uint32
- func (*PTConfig) ProtoMessage()
- func (x *PTConfig) ProtoReflect() protoreflect.Message
- func (x *PTConfig) Reset()
- func (x *PTConfig) String() string
- type PTConfigs
- type PTReadings
- func (*PTReadings) Descriptor() ([]byte, []int)deprecated
- func (x *PTReadings) GetAverage() float32
- func (x *PTReadings) GetError() string
- func (x *PTReadings) GetID() string
- func (x *PTReadings) GetStampMillis() int64
- func (x *PTReadings) GetTemperature() float32
- func (*PTReadings) ProtoMessage()
- func (x *PTReadings) ProtoReflect() protoreflect.Message
- func (x *PTReadings) Reset()
- func (x *PTReadings) String() string
- type PTServer
- type PTTemperature
- type PTTemperatures
- type UnimplementedDSServer
- type UnimplementedGPIOServer
- type UnimplementedHeaterServer
- type UnimplementedPTServer
- type UnsafeDSServer
- type UnsafeGPIOServer
- type UnsafeHeaterServer
- type UnsafePTServer
Constants ¶
This section is empty.
Variables ¶
var DS_ServiceDesc = grpc.ServiceDesc{ ServiceName: "embeddedproto.DS", HandlerType: (*DSServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DSGet", Handler: _DS_DSGet_Handler, }, { MethodName: "DSConfigure", Handler: _DS_DSConfigure_Handler, }, { MethodName: "DSGetTemperatures", Handler: _DS_DSGetTemperatures_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/embedded/embeddedproto/ds18b20.proto", }
DS_ServiceDesc is the grpc.ServiceDesc for DS service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_embedded_embeddedproto_ds18b20_proto protoreflect.FileDescriptor
var File_pkg_embedded_embeddedproto_gpio_proto protoreflect.FileDescriptor
var File_pkg_embedded_embeddedproto_heaters_proto protoreflect.FileDescriptor
var File_pkg_embedded_embeddedproto_pt100_proto protoreflect.FileDescriptor
var GPIO_ServiceDesc = grpc.ServiceDesc{ ServiceName: "embeddedproto.GPIO", HandlerType: (*GPIOServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GPIOGet", Handler: _GPIO_GPIOGet_Handler, }, { MethodName: "GPIOConfigure", Handler: _GPIO_GPIOConfigure_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/embedded/embeddedproto/gpio.proto", }
GPIO_ServiceDesc is the grpc.ServiceDesc for GPIO service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Heater_ServiceDesc = grpc.ServiceDesc{ ServiceName: "embeddedproto.Heater", HandlerType: (*HeaterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HeaterGet", Handler: _Heater_HeaterGet_Handler, }, { MethodName: "HeaterConfigure", Handler: _Heater_HeaterConfigure_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/embedded/embeddedproto/heaters.proto", }
Heater_ServiceDesc is the grpc.ServiceDesc for Heater service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PT_ServiceDesc = grpc.ServiceDesc{ ServiceName: "embeddedproto.PT", HandlerType: (*PTServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PTGet", Handler: _PT_PTGet_Handler, }, { MethodName: "PTConfigure", Handler: _PT_PTConfigure_Handler, }, { MethodName: "PTGetTemperatures", Handler: _PT_PTGetTemperatures_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/embedded/embeddedproto/pt100.proto", }
PT_ServiceDesc is the grpc.ServiceDesc for PT service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterDSServer ¶
func RegisterDSServer(s grpc.ServiceRegistrar, srv DSServer)
func RegisterGPIOServer ¶
func RegisterGPIOServer(s grpc.ServiceRegistrar, srv GPIOServer)
func RegisterHeaterServer ¶
func RegisterHeaterServer(s grpc.ServiceRegistrar, srv HeaterServer)
func RegisterPTServer ¶
func RegisterPTServer(s grpc.ServiceRegistrar, srv PTServer)
Types ¶
type DSClient ¶
type DSClient interface { DSGet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DSConfigs, error) DSConfigure(ctx context.Context, in *DSConfig, opts ...grpc.CallOption) (*DSConfig, error) DSGetTemperatures(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DSTemperatures, error) }
DSClient is the client API for DS 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 NewDSClient ¶
func NewDSClient(cc grpc.ClientConnInterface) DSClient
type DSConfig ¶
type DSConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Correction float32 `protobuf:"fixed32,3,opt,name=Correction,proto3" json:"Correction,omitempty"` Resolution int32 `protobuf:"varint,4,opt,name=Resolution,proto3" json:"Resolution,omitempty"` PollInterval int32 `protobuf:"varint,5,opt,name=PollInterval,proto3" json:"PollInterval,omitempty"` Samples uint32 `protobuf:"varint,6,opt,name=Samples,proto3" json:"Samples,omitempty"` Enabled bool `protobuf:"varint,7,opt,name=Enabled,proto3" json:"Enabled,omitempty"` // contains filtered or unexported fields }
func (*DSConfig) Descriptor
deprecated
func (*DSConfig) GetCorrection ¶
func (*DSConfig) GetEnabled ¶
func (*DSConfig) GetPollInterval ¶
func (*DSConfig) GetResolution ¶
func (*DSConfig) GetSamples ¶
func (*DSConfig) ProtoMessage ¶
func (*DSConfig) ProtoMessage()
func (*DSConfig) ProtoReflect ¶
func (x *DSConfig) ProtoReflect() protoreflect.Message
type DSConfigs ¶
type DSConfigs struct { Configs []*DSConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
func (*DSConfigs) Descriptor
deprecated
func (*DSConfigs) GetConfigs ¶
func (*DSConfigs) ProtoMessage ¶
func (*DSConfigs) ProtoMessage()
func (*DSConfigs) ProtoReflect ¶
func (x *DSConfigs) ProtoReflect() protoreflect.Message
type DSReadings ¶
type DSReadings struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Temperature float32 `protobuf:"fixed32,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"` Average float32 `protobuf:"fixed32,3,opt,name=Average,proto3" json:"Average,omitempty"` StampMillis int64 `protobuf:"varint,4,opt,name=StampMillis,proto3" json:"StampMillis,omitempty"` Error string `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*DSReadings) Descriptor
deprecated
func (*DSReadings) Descriptor() ([]byte, []int)
Deprecated: Use DSReadings.ProtoReflect.Descriptor instead.
func (*DSReadings) GetAverage ¶
func (x *DSReadings) GetAverage() float32
func (*DSReadings) GetError ¶
func (x *DSReadings) GetError() string
func (*DSReadings) GetID ¶
func (x *DSReadings) GetID() string
func (*DSReadings) GetStampMillis ¶
func (x *DSReadings) GetStampMillis() int64
func (*DSReadings) GetTemperature ¶
func (x *DSReadings) GetTemperature() float32
func (*DSReadings) ProtoMessage ¶
func (*DSReadings) ProtoMessage()
func (*DSReadings) ProtoReflect ¶
func (x *DSReadings) ProtoReflect() protoreflect.Message
func (*DSReadings) Reset ¶
func (x *DSReadings) Reset()
func (*DSReadings) String ¶
func (x *DSReadings) String() string
type DSServer ¶
type DSServer interface { DSGet(context.Context, *empty.Empty) (*DSConfigs, error) DSConfigure(context.Context, *DSConfig) (*DSConfig, error) DSGetTemperatures(context.Context, *empty.Empty) (*DSTemperatures, error) // contains filtered or unexported methods }
DSServer is the server API for DS service. All implementations must embed UnimplementedDSServer for forward compatibility
type DSTemperature ¶
type DSTemperature struct { Readings []*DSReadings `protobuf:"bytes,1,rep,name=readings,proto3" json:"readings,omitempty"` // contains filtered or unexported fields }
func (*DSTemperature) Descriptor
deprecated
func (*DSTemperature) Descriptor() ([]byte, []int)
Deprecated: Use DSTemperature.ProtoReflect.Descriptor instead.
func (*DSTemperature) GetReadings ¶
func (x *DSTemperature) GetReadings() []*DSReadings
func (*DSTemperature) ProtoMessage ¶
func (*DSTemperature) ProtoMessage()
func (*DSTemperature) ProtoReflect ¶
func (x *DSTemperature) ProtoReflect() protoreflect.Message
func (*DSTemperature) Reset ¶
func (x *DSTemperature) Reset()
func (*DSTemperature) String ¶
func (x *DSTemperature) String() string
type DSTemperatures ¶
type DSTemperatures struct { Temps []*DSTemperature `protobuf:"bytes,1,rep,name=temps,proto3" json:"temps,omitempty"` // contains filtered or unexported fields }
func (*DSTemperatures) Descriptor
deprecated
func (*DSTemperatures) Descriptor() ([]byte, []int)
Deprecated: Use DSTemperatures.ProtoReflect.Descriptor instead.
func (*DSTemperatures) GetTemps ¶
func (x *DSTemperatures) GetTemps() []*DSTemperature
func (*DSTemperatures) ProtoMessage ¶
func (*DSTemperatures) ProtoMessage()
func (*DSTemperatures) ProtoReflect ¶
func (x *DSTemperatures) ProtoReflect() protoreflect.Message
func (*DSTemperatures) Reset ¶
func (x *DSTemperatures) Reset()
func (*DSTemperatures) String ¶
func (x *DSTemperatures) String() string
type GPIOClient ¶
type GPIOClient interface { GPIOGet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GPIOConfigs, error) GPIOConfigure(ctx context.Context, in *GPIOConfig, opts ...grpc.CallOption) (*GPIOConfig, error) }
GPIOClient is the client API for GPIO 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 NewGPIOClient ¶
func NewGPIOClient(cc grpc.ClientConnInterface) GPIOClient
type GPIOConfig ¶
type GPIOConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Direction int32 `protobuf:"varint,2,opt,name=Direction,proto3" json:"Direction,omitempty"` ActiveLevel int32 `protobuf:"varint,3,opt,name=ActiveLevel,proto3" json:"ActiveLevel,omitempty"` Value bool `protobuf:"varint,4,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*GPIOConfig) Descriptor
deprecated
func (*GPIOConfig) Descriptor() ([]byte, []int)
Deprecated: Use GPIOConfig.ProtoReflect.Descriptor instead.
func (*GPIOConfig) GetActiveLevel ¶
func (x *GPIOConfig) GetActiveLevel() int32
func (*GPIOConfig) GetDirection ¶
func (x *GPIOConfig) GetDirection() int32
func (*GPIOConfig) GetID ¶
func (x *GPIOConfig) GetID() string
func (*GPIOConfig) GetValue ¶
func (x *GPIOConfig) GetValue() bool
func (*GPIOConfig) ProtoMessage ¶
func (*GPIOConfig) ProtoMessage()
func (*GPIOConfig) ProtoReflect ¶
func (x *GPIOConfig) ProtoReflect() protoreflect.Message
func (*GPIOConfig) Reset ¶
func (x *GPIOConfig) Reset()
func (*GPIOConfig) String ¶
func (x *GPIOConfig) String() string
type GPIOConfigs ¶
type GPIOConfigs struct { Configs []*GPIOConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
func (*GPIOConfigs) Descriptor
deprecated
func (*GPIOConfigs) Descriptor() ([]byte, []int)
Deprecated: Use GPIOConfigs.ProtoReflect.Descriptor instead.
func (*GPIOConfigs) GetConfigs ¶
func (x *GPIOConfigs) GetConfigs() []*GPIOConfig
func (*GPIOConfigs) ProtoMessage ¶
func (*GPIOConfigs) ProtoMessage()
func (*GPIOConfigs) ProtoReflect ¶
func (x *GPIOConfigs) ProtoReflect() protoreflect.Message
func (*GPIOConfigs) Reset ¶
func (x *GPIOConfigs) Reset()
func (*GPIOConfigs) String ¶
func (x *GPIOConfigs) String() string
type GPIOServer ¶
type GPIOServer interface { GPIOGet(context.Context, *empty.Empty) (*GPIOConfigs, error) GPIOConfigure(context.Context, *GPIOConfig) (*GPIOConfig, error) // contains filtered or unexported methods }
GPIOServer is the server API for GPIO service. All implementations must embed UnimplementedGPIOServer for forward compatibility
type HeaterClient ¶
type HeaterClient interface { HeaterGet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HeaterConfigs, error) HeaterConfigure(ctx context.Context, in *HeaterConfig, opts ...grpc.CallOption) (*HeaterConfig, error) }
HeaterClient is the client API for Heater 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 NewHeaterClient ¶
func NewHeaterClient(cc grpc.ClientConnInterface) HeaterClient
type HeaterConfig ¶
type HeaterConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=Enabled,proto3" json:"Enabled,omitempty"` Power uint32 `protobuf:"varint,3,opt,name=Power,proto3" json:"Power,omitempty"` // contains filtered or unexported fields }
func (*HeaterConfig) Descriptor
deprecated
func (*HeaterConfig) Descriptor() ([]byte, []int)
Deprecated: Use HeaterConfig.ProtoReflect.Descriptor instead.
func (*HeaterConfig) GetEnabled ¶
func (x *HeaterConfig) GetEnabled() bool
func (*HeaterConfig) GetID ¶
func (x *HeaterConfig) GetID() string
func (*HeaterConfig) GetPower ¶
func (x *HeaterConfig) GetPower() uint32
func (*HeaterConfig) ProtoMessage ¶
func (*HeaterConfig) ProtoMessage()
func (*HeaterConfig) ProtoReflect ¶
func (x *HeaterConfig) ProtoReflect() protoreflect.Message
func (*HeaterConfig) Reset ¶
func (x *HeaterConfig) Reset()
func (*HeaterConfig) String ¶
func (x *HeaterConfig) String() string
type HeaterConfigs ¶
type HeaterConfigs struct { Configs []*HeaterConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
func (*HeaterConfigs) Descriptor
deprecated
func (*HeaterConfigs) Descriptor() ([]byte, []int)
Deprecated: Use HeaterConfigs.ProtoReflect.Descriptor instead.
func (*HeaterConfigs) GetConfigs ¶
func (x *HeaterConfigs) GetConfigs() []*HeaterConfig
func (*HeaterConfigs) ProtoMessage ¶
func (*HeaterConfigs) ProtoMessage()
func (*HeaterConfigs) ProtoReflect ¶
func (x *HeaterConfigs) ProtoReflect() protoreflect.Message
func (*HeaterConfigs) Reset ¶
func (x *HeaterConfigs) Reset()
func (*HeaterConfigs) String ¶
func (x *HeaterConfigs) String() string
type HeaterServer ¶
type HeaterServer interface { HeaterGet(context.Context, *empty.Empty) (*HeaterConfigs, error) HeaterConfigure(context.Context, *HeaterConfig) (*HeaterConfig, error) // contains filtered or unexported methods }
HeaterServer is the server API for Heater service. All implementations must embed UnimplementedHeaterServer for forward compatibility
type PTClient ¶
type PTClient interface { PTGet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PTConfigs, error) PTConfigure(ctx context.Context, in *PTConfig, opts ...grpc.CallOption) (*PTConfig, error) PTGetTemperatures(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PTTemperatures, error) }
PTClient is the client API for PT 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 NewPTClient ¶
func NewPTClient(cc grpc.ClientConnInterface) PTClient
type PTConfig ¶
type PTConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Correction float32 `protobuf:"fixed32,3,opt,name=Correction,proto3" json:"Correction,omitempty"` PollInterval int32 `protobuf:"varint,5,opt,name=PollInterval,proto3" json:"PollInterval,omitempty"` Samples uint32 `protobuf:"varint,6,opt,name=Samples,proto3" json:"Samples,omitempty"` Enabled bool `protobuf:"varint,7,opt,name=Enabled,proto3" json:"Enabled,omitempty"` Async bool `protobuf:"varint,8,opt,name=Async,proto3" json:"Async,omitempty"` // contains filtered or unexported fields }
func (*PTConfig) Descriptor
deprecated
func (*PTConfig) GetCorrection ¶
func (*PTConfig) GetEnabled ¶
func (*PTConfig) GetPollInterval ¶
func (*PTConfig) GetSamples ¶
func (*PTConfig) ProtoMessage ¶
func (*PTConfig) ProtoMessage()
func (*PTConfig) ProtoReflect ¶
func (x *PTConfig) ProtoReflect() protoreflect.Message
type PTConfigs ¶
type PTConfigs struct { Configs []*PTConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
func (*PTConfigs) Descriptor
deprecated
func (*PTConfigs) GetConfigs ¶
func (*PTConfigs) ProtoMessage ¶
func (*PTConfigs) ProtoMessage()
func (*PTConfigs) ProtoReflect ¶
func (x *PTConfigs) ProtoReflect() protoreflect.Message
type PTReadings ¶
type PTReadings struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Temperature float32 `protobuf:"fixed32,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"` Average float32 `protobuf:"fixed32,3,opt,name=Average,proto3" json:"Average,omitempty"` StampMillis int64 `protobuf:"varint,4,opt,name=StampMillis,proto3" json:"StampMillis,omitempty"` Error string `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*PTReadings) Descriptor
deprecated
func (*PTReadings) Descriptor() ([]byte, []int)
Deprecated: Use PTReadings.ProtoReflect.Descriptor instead.
func (*PTReadings) GetAverage ¶
func (x *PTReadings) GetAverage() float32
func (*PTReadings) GetError ¶
func (x *PTReadings) GetError() string
func (*PTReadings) GetID ¶
func (x *PTReadings) GetID() string
func (*PTReadings) GetStampMillis ¶
func (x *PTReadings) GetStampMillis() int64
func (*PTReadings) GetTemperature ¶
func (x *PTReadings) GetTemperature() float32
func (*PTReadings) ProtoMessage ¶
func (*PTReadings) ProtoMessage()
func (*PTReadings) ProtoReflect ¶
func (x *PTReadings) ProtoReflect() protoreflect.Message
func (*PTReadings) Reset ¶
func (x *PTReadings) Reset()
func (*PTReadings) String ¶
func (x *PTReadings) String() string
type PTServer ¶
type PTServer interface { PTGet(context.Context, *empty.Empty) (*PTConfigs, error) PTConfigure(context.Context, *PTConfig) (*PTConfig, error) PTGetTemperatures(context.Context, *empty.Empty) (*PTTemperatures, error) // contains filtered or unexported methods }
PTServer is the server API for PT service. All implementations must embed UnimplementedPTServer for forward compatibility
type PTTemperature ¶
type PTTemperature struct { Readings []*PTReadings `protobuf:"bytes,1,rep,name=readings,proto3" json:"readings,omitempty"` // contains filtered or unexported fields }
func (*PTTemperature) Descriptor
deprecated
func (*PTTemperature) Descriptor() ([]byte, []int)
Deprecated: Use PTTemperature.ProtoReflect.Descriptor instead.
func (*PTTemperature) GetReadings ¶
func (x *PTTemperature) GetReadings() []*PTReadings
func (*PTTemperature) ProtoMessage ¶
func (*PTTemperature) ProtoMessage()
func (*PTTemperature) ProtoReflect ¶
func (x *PTTemperature) ProtoReflect() protoreflect.Message
func (*PTTemperature) Reset ¶
func (x *PTTemperature) Reset()
func (*PTTemperature) String ¶
func (x *PTTemperature) String() string
type PTTemperatures ¶
type PTTemperatures struct { Temps []*PTTemperature `protobuf:"bytes,1,rep,name=temps,proto3" json:"temps,omitempty"` // contains filtered or unexported fields }
func (*PTTemperatures) Descriptor
deprecated
func (*PTTemperatures) Descriptor() ([]byte, []int)
Deprecated: Use PTTemperatures.ProtoReflect.Descriptor instead.
func (*PTTemperatures) GetTemps ¶
func (x *PTTemperatures) GetTemps() []*PTTemperature
func (*PTTemperatures) ProtoMessage ¶
func (*PTTemperatures) ProtoMessage()
func (*PTTemperatures) ProtoReflect ¶
func (x *PTTemperatures) ProtoReflect() protoreflect.Message
func (*PTTemperatures) Reset ¶
func (x *PTTemperatures) Reset()
func (*PTTemperatures) String ¶
func (x *PTTemperatures) String() string
type UnimplementedDSServer ¶
type UnimplementedDSServer struct { }
UnimplementedDSServer must be embedded to have forward compatible implementations.
func (UnimplementedDSServer) DSConfigure ¶
func (UnimplementedDSServer) DSGetTemperatures ¶
func (UnimplementedDSServer) DSGetTemperatures(context.Context, *empty.Empty) (*DSTemperatures, error)
type UnimplementedGPIOServer ¶
type UnimplementedGPIOServer struct { }
UnimplementedGPIOServer must be embedded to have forward compatible implementations.
func (UnimplementedGPIOServer) GPIOConfigure ¶
func (UnimplementedGPIOServer) GPIOConfigure(context.Context, *GPIOConfig) (*GPIOConfig, error)
func (UnimplementedGPIOServer) GPIOGet ¶
func (UnimplementedGPIOServer) GPIOGet(context.Context, *empty.Empty) (*GPIOConfigs, error)
type UnimplementedHeaterServer ¶
type UnimplementedHeaterServer struct { }
UnimplementedHeaterServer must be embedded to have forward compatible implementations.
func (UnimplementedHeaterServer) HeaterConfigure ¶
func (UnimplementedHeaterServer) HeaterConfigure(context.Context, *HeaterConfig) (*HeaterConfig, error)
func (UnimplementedHeaterServer) HeaterGet ¶
func (UnimplementedHeaterServer) HeaterGet(context.Context, *empty.Empty) (*HeaterConfigs, error)
type UnimplementedPTServer ¶
type UnimplementedPTServer struct { }
UnimplementedPTServer must be embedded to have forward compatible implementations.
func (UnimplementedPTServer) PTConfigure ¶
func (UnimplementedPTServer) PTGetTemperatures ¶
func (UnimplementedPTServer) PTGetTemperatures(context.Context, *empty.Empty) (*PTTemperatures, error)
type UnsafeDSServer ¶
type UnsafeDSServer interface {
// contains filtered or unexported methods
}
UnsafeDSServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DSServer will result in compilation errors.
type UnsafeGPIOServer ¶
type UnsafeGPIOServer interface {
// contains filtered or unexported methods
}
UnsafeGPIOServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GPIOServer will result in compilation errors.
type UnsafeHeaterServer ¶
type UnsafeHeaterServer interface {
// contains filtered or unexported methods
}
UnsafeHeaterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HeaterServer will result in compilation errors.
type UnsafePTServer ¶
type UnsafePTServer interface {
// contains filtered or unexported methods
}
UnsafePTServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PTServer will result in compilation errors.