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)
- func RegisterProcessServer(s grpc.ServiceRegistrar, srv ProcessServer)
- 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 DSServer
- type DSTemperature
- func (*DSTemperature) Descriptor() ([]byte, []int)deprecated
- func (x *DSTemperature) GetErrorCode() int32
- func (x *DSTemperature) GetID() string
- func (x *DSTemperature) GetStamp() int64
- func (x *DSTemperature) GetTemperature() float32
- func (*DSTemperature) ProtoMessage()
- func (x *DSTemperature) ProtoReflect() protoreflect.Message
- func (x *DSTemperature) Reset()
- func (x *DSTemperature) String() string
- 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 GPIOPhaseConfig
- func (*GPIOPhaseConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GPIOPhaseConfig) GetEnabled() bool
- func (x *GPIOPhaseConfig) GetHysteresis() float32
- func (x *GPIOPhaseConfig) GetID() string
- func (x *GPIOPhaseConfig) GetInverted() bool
- func (x *GPIOPhaseConfig) GetSensorID() string
- func (x *GPIOPhaseConfig) GetTHigh() float32
- func (x *GPIOPhaseConfig) GetTLow() float32
- func (*GPIOPhaseConfig) ProtoMessage()
- func (x *GPIOPhaseConfig) ProtoReflect() protoreflect.Message
- func (x *GPIOPhaseConfig) Reset()
- func (x *GPIOPhaseConfig) String() string
- type GPIOPhaseStatus
- func (*GPIOPhaseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *GPIOPhaseStatus) GetID() string
- func (x *GPIOPhaseStatus) GetState() bool
- func (*GPIOPhaseStatus) ProtoMessage()
- func (x *GPIOPhaseStatus) ProtoReflect() protoreflect.Message
- func (x *GPIOPhaseStatus) Reset()
- func (x *GPIOPhaseStatus) String() string
- type GPIOServer
- type GlobalGPIOConfig
- func (*GlobalGPIOConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GlobalGPIOConfig) GetConfigs() []*GPIOPhaseConfig
- func (*GlobalGPIOConfig) ProtoMessage()
- func (x *GlobalGPIOConfig) ProtoReflect() protoreflect.Message
- func (x *GlobalGPIOConfig) Reset()
- func (x *GlobalGPIOConfig) String() string
- 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 HeaterPhaseConfig
- func (*HeaterPhaseConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HeaterPhaseConfig) GetID() string
- func (x *HeaterPhaseConfig) GetPower() int32
- func (*HeaterPhaseConfig) ProtoMessage()
- func (x *HeaterPhaseConfig) ProtoReflect() protoreflect.Message
- func (x *HeaterPhaseConfig) Reset()
- func (x *HeaterPhaseConfig) String() string
- type HeaterPhaseStatus
- func (*HeaterPhaseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *HeaterPhaseStatus) GetID() string
- func (x *HeaterPhaseStatus) GetPower() int32
- func (*HeaterPhaseStatus) ProtoMessage()
- func (x *HeaterPhaseStatus) ProtoReflect() protoreflect.Message
- func (x *HeaterPhaseStatus) Reset()
- func (x *HeaterPhaseStatus) String() string
- type HeaterServer
- type MoveToNextConfig
- func (*MoveToNextConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MoveToNextConfig) GetSensorID() string
- func (x *MoveToNextConfig) GetSensorThreshold() float32
- func (x *MoveToNextConfig) GetTimeLeft() int64
- func (x *MoveToNextConfig) GetType() int32
- func (*MoveToNextConfig) ProtoMessage()
- func (x *MoveToNextConfig) ProtoReflect() protoreflect.Message
- func (x *MoveToNextConfig) Reset()
- func (x *MoveToNextConfig) String() string
- type MoveToNextStatus
- func (*MoveToNextStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MoveToNextStatus) GetTemperature() *MoveToNextStatusTemperature
- func (x *MoveToNextStatus) GetTimeLeft() int64
- func (x *MoveToNextStatus) GetType() int32
- func (*MoveToNextStatus) ProtoMessage()
- func (x *MoveToNextStatus) ProtoReflect() protoreflect.Message
- func (x *MoveToNextStatus) Reset()
- func (x *MoveToNextStatus) String() string
- type MoveToNextStatusTemperature
- func (*MoveToNextStatusTemperature) Descriptor() ([]byte, []int)deprecated
- func (x *MoveToNextStatusTemperature) GetSensorID() string
- func (x *MoveToNextStatusTemperature) GetSensorThreshold() float32
- func (x *MoveToNextStatusTemperature) GetTimeLeft() int64
- func (*MoveToNextStatusTemperature) ProtoMessage()
- func (x *MoveToNextStatusTemperature) ProtoReflect() protoreflect.Message
- func (x *MoveToNextStatusTemperature) Reset()
- func (x *MoveToNextStatusTemperature) String() string
- 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 PTServer
- type PTTemperature
- func (*PTTemperature) Descriptor() ([]byte, []int)deprecated
- func (x *PTTemperature) GetErrorCode() int32
- func (x *PTTemperature) GetID() string
- func (x *PTTemperature) GetStamp() int64
- func (x *PTTemperature) GetTemperature() float32
- func (*PTTemperature) ProtoMessage()
- func (x *PTTemperature) ProtoReflect() protoreflect.Message
- func (x *PTTemperature) Reset()
- func (x *PTTemperature) String() string
- type PTTemperatures
- type PhaseNumber
- type ProcessClient
- type ProcessConfig
- func (*ProcessConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessConfig) GetDisable() bool
- func (x *ProcessConfig) GetEnable() bool
- func (x *ProcessConfig) GetMoveToNext() bool
- func (*ProcessConfig) ProtoMessage()
- func (x *ProcessConfig) ProtoReflect() protoreflect.Message
- func (x *ProcessConfig) Reset()
- func (x *ProcessConfig) String() string
- type ProcessConfigValidation
- func (*ProcessConfigValidation) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessConfigValidation) GetError() string
- func (x *ProcessConfigValidation) GetValid() bool
- func (*ProcessConfigValidation) ProtoMessage()
- func (x *ProcessConfigValidation) ProtoReflect() protoreflect.Message
- func (x *ProcessConfigValidation) Reset()
- func (x *ProcessConfigValidation) String() string
- type ProcessGlobalConfig
- func (*ProcessGlobalConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessGlobalConfig) GetCount() int32
- func (x *ProcessGlobalConfig) GetGlobalGPIOConfig() []*GPIOPhaseConfig
- func (x *ProcessGlobalConfig) GetPhaseConfig() []*ProcessPhaseConfig
- func (x *ProcessGlobalConfig) GetSensors() []string
- func (*ProcessGlobalConfig) ProtoMessage()
- func (x *ProcessGlobalConfig) ProtoReflect() protoreflect.Message
- func (x *ProcessGlobalConfig) Reset()
- func (x *ProcessGlobalConfig) String() string
- type ProcessPhaseConfig
- func (*ProcessPhaseConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessPhaseConfig) GetGPIO() []*GPIOPhaseConfig
- func (x *ProcessPhaseConfig) GetHeaters() []*HeaterPhaseConfig
- func (x *ProcessPhaseConfig) GetNext() *MoveToNextConfig
- func (x *ProcessPhaseConfig) GetNumber() *PhaseNumber
- func (*ProcessPhaseConfig) ProtoMessage()
- func (x *ProcessPhaseConfig) ProtoReflect() protoreflect.Message
- func (x *ProcessPhaseConfig) Reset()
- func (x *ProcessPhaseConfig) String() string
- type ProcessPhaseCount
- type ProcessServer
- type ProcessStatus
- func (*ProcessStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessStatus) GetDone() bool
- func (x *ProcessStatus) GetEndTime() int64
- func (x *ProcessStatus) GetErrors() []string
- func (x *ProcessStatus) GetGPIO() []*GPIOPhaseStatus
- func (x *ProcessStatus) GetHeaters() []*HeaterPhaseStatus
- func (x *ProcessStatus) GetNext() *MoveToNextStatus
- func (x *ProcessStatus) GetPhaseNumber() int32
- func (x *ProcessStatus) GetRunning() bool
- func (x *ProcessStatus) GetStartTime() int64
- func (x *ProcessStatus) GetTemperature() []*TemperaturePhaseStatus
- func (*ProcessStatus) ProtoMessage()
- func (x *ProcessStatus) ProtoReflect() protoreflect.Message
- func (x *ProcessStatus) Reset()
- func (x *ProcessStatus) String() string
- type TemperaturePhaseStatus
- func (*TemperaturePhaseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *TemperaturePhaseStatus) GetID() string
- func (x *TemperaturePhaseStatus) GetTemperature() float32
- func (*TemperaturePhaseStatus) ProtoMessage()
- func (x *TemperaturePhaseStatus) ProtoReflect() protoreflect.Message
- func (x *TemperaturePhaseStatus) Reset()
- func (x *TemperaturePhaseStatus) String() string
- type UnimplementedDSServer
- type UnimplementedGPIOServer
- type UnimplementedHeaterServer
- type UnimplementedPTServer
- type UnimplementedProcessServer
- func (UnimplementedProcessServer) ConfigureGlobalGPIO(context.Context, *GlobalGPIOConfig) (*GlobalGPIOConfig, error)
- func (UnimplementedProcessServer) ConfigurePhase(context.Context, *ProcessPhaseConfig) (*ProcessPhaseConfig, error)
- func (UnimplementedProcessServer) ConfigurePhaseCount(context.Context, *ProcessPhaseCount) (*ProcessPhaseCount, error)
- func (UnimplementedProcessServer) EnableProcess(context.Context, *ProcessConfig) (*ProcessConfig, error)
- func (UnimplementedProcessServer) GetGlobalConfig(context.Context, *empty.Empty) (*ProcessGlobalConfig, error)
- func (UnimplementedProcessServer) GetPhaseConfig(context.Context, *PhaseNumber) (*ProcessPhaseConfig, error)
- func (UnimplementedProcessServer) GetPhaseCount(context.Context, *empty.Empty) (*ProcessPhaseCount, error)
- func (UnimplementedProcessServer) Status(context.Context, *empty.Empty) (*ProcessStatus, error)
- func (UnimplementedProcessServer) ValidateConfig(context.Context, *empty.Empty) (*ProcessConfigValidation, error)
- type UnsafeDSServer
- type UnsafeGPIOServer
- type UnsafeHeaterServer
- type UnsafePTServer
- type UnsafeProcessServer
Constants ¶
This section is empty.
Variables ¶
var DS_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distillationproto.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/distillation/distillationproto/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_distillation_distillationproto_ds18b20_proto protoreflect.FileDescriptor
var File_pkg_distillation_distillationproto_gpio_proto protoreflect.FileDescriptor
var File_pkg_distillation_distillationproto_heaters_proto protoreflect.FileDescriptor
var File_pkg_distillation_distillationproto_process_proto protoreflect.FileDescriptor
var File_pkg_distillation_distillationproto_pt100_proto protoreflect.FileDescriptor
var GPIO_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distillationproto.GPIO", HandlerType: (*GPIOServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GPIOGet", Handler: _GPIO_GPIOGet_Handler, }, { MethodName: "GPIOConfigure", Handler: _GPIO_GPIOConfigure_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/distillation/distillationproto/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: "distillationproto.Heater", HandlerType: (*HeaterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HeaterGet", Handler: _Heater_HeaterGet_Handler, }, { MethodName: "HeaterConfigure", Handler: _Heater_HeaterConfigure_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/distillation/distillationproto/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: "distillationproto.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/distillation/distillationproto/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)
var Process_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distillationproto.Process", HandlerType: (*ProcessServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetGlobalConfig", Handler: _Process_GetGlobalConfig_Handler, }, { MethodName: "GetPhaseCount", Handler: _Process_GetPhaseCount_Handler, }, { MethodName: "GetPhaseConfig", Handler: _Process_GetPhaseConfig_Handler, }, { MethodName: "ConfigurePhaseCount", Handler: _Process_ConfigurePhaseCount_Handler, }, { MethodName: "ConfigurePhase", Handler: _Process_ConfigurePhase_Handler, }, { MethodName: "ValidateConfig", Handler: _Process_ValidateConfig_Handler, }, { MethodName: "ConfigureGlobalGPIO", Handler: _Process_ConfigureGlobalGPIO_Handler, }, { MethodName: "EnableProcess", Handler: _Process_EnableProcess_Handler, }, { MethodName: "Status", Handler: _Process_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/distillation/distillationproto/process.proto", }
Process_ServiceDesc is the grpc.ServiceDesc for Process 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)
func RegisterProcessServer ¶
func RegisterProcessServer(s grpc.ServiceRegistrar, srv ProcessServer)
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.go.dev/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 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 { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Temperature float32 `protobuf:"fixed32,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"` Stamp int64 `protobuf:"varint,3,opt,name=Stamp,proto3" json:"Stamp,omitempty"` ErrorCode int32 `protobuf:"varint,4,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"` // contains filtered or unexported fields }
func (*DSTemperature) Descriptor
deprecated
func (*DSTemperature) Descriptor() ([]byte, []int)
Deprecated: Use DSTemperature.ProtoReflect.Descriptor instead.
func (*DSTemperature) GetErrorCode ¶
func (x *DSTemperature) GetErrorCode() int32
func (*DSTemperature) GetID ¶
func (x *DSTemperature) GetID() string
func (*DSTemperature) GetStamp ¶
func (x *DSTemperature) GetStamp() int64
func (*DSTemperature) GetTemperature ¶
func (x *DSTemperature) GetTemperature() float32
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.go.dev/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 GPIOPhaseConfig ¶
type GPIOPhaseConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` SensorID string `protobuf:"bytes,2,opt,name=SensorID,proto3" json:"SensorID,omitempty"` TLow float32 `protobuf:"fixed32,3,opt,name=TLow,proto3" json:"TLow,omitempty"` THigh float32 `protobuf:"fixed32,4,opt,name=THigh,proto3" json:"THigh,omitempty"` Hysteresis float32 `protobuf:"fixed32,5,opt,name=Hysteresis,proto3" json:"Hysteresis,omitempty"` Inverted bool `protobuf:"varint,6,opt,name=Inverted,proto3" json:"Inverted,omitempty"` Enabled bool `protobuf:"varint,7,opt,name=Enabled,proto3" json:"Enabled,omitempty"` // contains filtered or unexported fields }
func (*GPIOPhaseConfig) Descriptor
deprecated
func (*GPIOPhaseConfig) Descriptor() ([]byte, []int)
Deprecated: Use GPIOPhaseConfig.ProtoReflect.Descriptor instead.
func (*GPIOPhaseConfig) GetEnabled ¶
func (x *GPIOPhaseConfig) GetEnabled() bool
func (*GPIOPhaseConfig) GetHysteresis ¶
func (x *GPIOPhaseConfig) GetHysteresis() float32
func (*GPIOPhaseConfig) GetID ¶
func (x *GPIOPhaseConfig) GetID() string
func (*GPIOPhaseConfig) GetInverted ¶
func (x *GPIOPhaseConfig) GetInverted() bool
func (*GPIOPhaseConfig) GetSensorID ¶
func (x *GPIOPhaseConfig) GetSensorID() string
func (*GPIOPhaseConfig) GetTHigh ¶
func (x *GPIOPhaseConfig) GetTHigh() float32
func (*GPIOPhaseConfig) GetTLow ¶
func (x *GPIOPhaseConfig) GetTLow() float32
func (*GPIOPhaseConfig) ProtoMessage ¶
func (*GPIOPhaseConfig) ProtoMessage()
func (*GPIOPhaseConfig) ProtoReflect ¶
func (x *GPIOPhaseConfig) ProtoReflect() protoreflect.Message
func (*GPIOPhaseConfig) Reset ¶
func (x *GPIOPhaseConfig) Reset()
func (*GPIOPhaseConfig) String ¶
func (x *GPIOPhaseConfig) String() string
type GPIOPhaseStatus ¶
type GPIOPhaseStatus struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` State bool `protobuf:"varint,2,opt,name=State,proto3" json:"State,omitempty"` // contains filtered or unexported fields }
func (*GPIOPhaseStatus) Descriptor
deprecated
func (*GPIOPhaseStatus) Descriptor() ([]byte, []int)
Deprecated: Use GPIOPhaseStatus.ProtoReflect.Descriptor instead.
func (*GPIOPhaseStatus) GetID ¶
func (x *GPIOPhaseStatus) GetID() string
func (*GPIOPhaseStatus) GetState ¶
func (x *GPIOPhaseStatus) GetState() bool
func (*GPIOPhaseStatus) ProtoMessage ¶
func (*GPIOPhaseStatus) ProtoMessage()
func (*GPIOPhaseStatus) ProtoReflect ¶
func (x *GPIOPhaseStatus) ProtoReflect() protoreflect.Message
func (*GPIOPhaseStatus) Reset ¶
func (x *GPIOPhaseStatus) Reset()
func (*GPIOPhaseStatus) String ¶
func (x *GPIOPhaseStatus) 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 GlobalGPIOConfig ¶
type GlobalGPIOConfig struct { Configs []*GPIOPhaseConfig `protobuf:"bytes,1,rep,name=Configs,proto3" json:"Configs,omitempty"` // contains filtered or unexported fields }
func (*GlobalGPIOConfig) Descriptor
deprecated
func (*GlobalGPIOConfig) Descriptor() ([]byte, []int)
Deprecated: Use GlobalGPIOConfig.ProtoReflect.Descriptor instead.
func (*GlobalGPIOConfig) GetConfigs ¶
func (x *GlobalGPIOConfig) GetConfigs() []*GPIOPhaseConfig
func (*GlobalGPIOConfig) ProtoMessage ¶
func (*GlobalGPIOConfig) ProtoMessage()
func (*GlobalGPIOConfig) ProtoReflect ¶
func (x *GlobalGPIOConfig) ProtoReflect() protoreflect.Message
func (*GlobalGPIOConfig) Reset ¶
func (x *GlobalGPIOConfig) Reset()
func (*GlobalGPIOConfig) String ¶
func (x *GlobalGPIOConfig) String() string
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.go.dev/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 HeaterPhaseConfig ¶
type HeaterPhaseConfig struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Power int32 `protobuf:"varint,2,opt,name=Power,proto3" json:"Power,omitempty"` // contains filtered or unexported fields }
func (*HeaterPhaseConfig) Descriptor
deprecated
func (*HeaterPhaseConfig) Descriptor() ([]byte, []int)
Deprecated: Use HeaterPhaseConfig.ProtoReflect.Descriptor instead.
func (*HeaterPhaseConfig) GetID ¶
func (x *HeaterPhaseConfig) GetID() string
func (*HeaterPhaseConfig) GetPower ¶
func (x *HeaterPhaseConfig) GetPower() int32
func (*HeaterPhaseConfig) ProtoMessage ¶
func (*HeaterPhaseConfig) ProtoMessage()
func (*HeaterPhaseConfig) ProtoReflect ¶
func (x *HeaterPhaseConfig) ProtoReflect() protoreflect.Message
func (*HeaterPhaseConfig) Reset ¶
func (x *HeaterPhaseConfig) Reset()
func (*HeaterPhaseConfig) String ¶
func (x *HeaterPhaseConfig) String() string
type HeaterPhaseStatus ¶
type HeaterPhaseStatus struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Power int32 `protobuf:"varint,2,opt,name=Power,proto3" json:"Power,omitempty"` // contains filtered or unexported fields }
func (*HeaterPhaseStatus) Descriptor
deprecated
func (*HeaterPhaseStatus) Descriptor() ([]byte, []int)
Deprecated: Use HeaterPhaseStatus.ProtoReflect.Descriptor instead.
func (*HeaterPhaseStatus) GetID ¶
func (x *HeaterPhaseStatus) GetID() string
func (*HeaterPhaseStatus) GetPower ¶
func (x *HeaterPhaseStatus) GetPower() int32
func (*HeaterPhaseStatus) ProtoMessage ¶
func (*HeaterPhaseStatus) ProtoMessage()
func (*HeaterPhaseStatus) ProtoReflect ¶
func (x *HeaterPhaseStatus) ProtoReflect() protoreflect.Message
func (*HeaterPhaseStatus) Reset ¶
func (x *HeaterPhaseStatus) Reset()
func (*HeaterPhaseStatus) String ¶
func (x *HeaterPhaseStatus) 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 MoveToNextConfig ¶
type MoveToNextConfig struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` SensorID string `protobuf:"bytes,2,opt,name=SensorID,proto3" json:"SensorID,omitempty"` SensorThreshold float32 `protobuf:"fixed32,3,opt,name=SensorThreshold,proto3" json:"SensorThreshold,omitempty"` TimeLeft int64 `protobuf:"varint,4,opt,name=TimeLeft,proto3" json:"TimeLeft,omitempty"` // contains filtered or unexported fields }
func (*MoveToNextConfig) Descriptor
deprecated
func (*MoveToNextConfig) Descriptor() ([]byte, []int)
Deprecated: Use MoveToNextConfig.ProtoReflect.Descriptor instead.
func (*MoveToNextConfig) GetSensorID ¶
func (x *MoveToNextConfig) GetSensorID() string
func (*MoveToNextConfig) GetSensorThreshold ¶
func (x *MoveToNextConfig) GetSensorThreshold() float32
func (*MoveToNextConfig) GetTimeLeft ¶
func (x *MoveToNextConfig) GetTimeLeft() int64
func (*MoveToNextConfig) GetType ¶
func (x *MoveToNextConfig) GetType() int32
func (*MoveToNextConfig) ProtoMessage ¶
func (*MoveToNextConfig) ProtoMessage()
func (*MoveToNextConfig) ProtoReflect ¶
func (x *MoveToNextConfig) ProtoReflect() protoreflect.Message
func (*MoveToNextConfig) Reset ¶
func (x *MoveToNextConfig) Reset()
func (*MoveToNextConfig) String ¶
func (x *MoveToNextConfig) String() string
type MoveToNextStatus ¶
type MoveToNextStatus struct { Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"` TimeLeft int64 `protobuf:"varint,2,opt,name=TimeLeft,proto3" json:"TimeLeft,omitempty"` Temperature *MoveToNextStatusTemperature `protobuf:"bytes,3,opt,name=Temperature,proto3" json:"Temperature,omitempty"` // contains filtered or unexported fields }
func (*MoveToNextStatus) Descriptor
deprecated
func (*MoveToNextStatus) Descriptor() ([]byte, []int)
Deprecated: Use MoveToNextStatus.ProtoReflect.Descriptor instead.
func (*MoveToNextStatus) GetTemperature ¶
func (x *MoveToNextStatus) GetTemperature() *MoveToNextStatusTemperature
func (*MoveToNextStatus) GetTimeLeft ¶
func (x *MoveToNextStatus) GetTimeLeft() int64
func (*MoveToNextStatus) GetType ¶
func (x *MoveToNextStatus) GetType() int32
func (*MoveToNextStatus) ProtoMessage ¶
func (*MoveToNextStatus) ProtoMessage()
func (*MoveToNextStatus) ProtoReflect ¶
func (x *MoveToNextStatus) ProtoReflect() protoreflect.Message
func (*MoveToNextStatus) Reset ¶
func (x *MoveToNextStatus) Reset()
func (*MoveToNextStatus) String ¶
func (x *MoveToNextStatus) String() string
type MoveToNextStatusTemperature ¶
type MoveToNextStatusTemperature struct { SensorID string `protobuf:"bytes,1,opt,name=SensorID,proto3" json:"SensorID,omitempty"` SensorThreshold float32 `protobuf:"fixed32,2,opt,name=SensorThreshold,proto3" json:"SensorThreshold,omitempty"` TimeLeft int64 `protobuf:"varint,3,opt,name=TimeLeft,proto3" json:"TimeLeft,omitempty"` // contains filtered or unexported fields }
func (*MoveToNextStatusTemperature) Descriptor
deprecated
func (*MoveToNextStatusTemperature) Descriptor() ([]byte, []int)
Deprecated: Use MoveToNextStatusTemperature.ProtoReflect.Descriptor instead.
func (*MoveToNextStatusTemperature) GetSensorID ¶
func (x *MoveToNextStatusTemperature) GetSensorID() string
func (*MoveToNextStatusTemperature) GetSensorThreshold ¶
func (x *MoveToNextStatusTemperature) GetSensorThreshold() float32
func (*MoveToNextStatusTemperature) GetTimeLeft ¶
func (x *MoveToNextStatusTemperature) GetTimeLeft() int64
func (*MoveToNextStatusTemperature) ProtoMessage ¶
func (*MoveToNextStatusTemperature) ProtoMessage()
func (*MoveToNextStatusTemperature) ProtoReflect ¶
func (x *MoveToNextStatusTemperature) ProtoReflect() protoreflect.Message
func (*MoveToNextStatusTemperature) Reset ¶
func (x *MoveToNextStatusTemperature) Reset()
func (*MoveToNextStatusTemperature) String ¶
func (x *MoveToNextStatusTemperature) String() string
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.go.dev/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 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 { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Temperature float32 `protobuf:"fixed32,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"` Stamp int64 `protobuf:"varint,3,opt,name=Stamp,proto3" json:"Stamp,omitempty"` ErrorCode int32 `protobuf:"varint,4,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"` // contains filtered or unexported fields }
func (*PTTemperature) Descriptor
deprecated
func (*PTTemperature) Descriptor() ([]byte, []int)
Deprecated: Use PTTemperature.ProtoReflect.Descriptor instead.
func (*PTTemperature) GetErrorCode ¶
func (x *PTTemperature) GetErrorCode() int32
func (*PTTemperature) GetID ¶
func (x *PTTemperature) GetID() string
func (*PTTemperature) GetStamp ¶
func (x *PTTemperature) GetStamp() int64
func (*PTTemperature) GetTemperature ¶
func (x *PTTemperature) GetTemperature() float32
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 PhaseNumber ¶
type PhaseNumber struct { Number int32 `protobuf:"varint,1,opt,name=Number,proto3" json:"Number,omitempty"` // contains filtered or unexported fields }
func (*PhaseNumber) Descriptor
deprecated
func (*PhaseNumber) Descriptor() ([]byte, []int)
Deprecated: Use PhaseNumber.ProtoReflect.Descriptor instead.
func (*PhaseNumber) GetNumber ¶
func (x *PhaseNumber) GetNumber() int32
func (*PhaseNumber) ProtoMessage ¶
func (*PhaseNumber) ProtoMessage()
func (*PhaseNumber) ProtoReflect ¶
func (x *PhaseNumber) ProtoReflect() protoreflect.Message
func (*PhaseNumber) Reset ¶
func (x *PhaseNumber) Reset()
func (*PhaseNumber) String ¶
func (x *PhaseNumber) String() string
type ProcessClient ¶
type ProcessClient interface { GetGlobalConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessGlobalConfig, error) GetPhaseCount(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessPhaseCount, error) GetPhaseConfig(ctx context.Context, in *PhaseNumber, opts ...grpc.CallOption) (*ProcessPhaseConfig, error) ConfigurePhaseCount(ctx context.Context, in *ProcessPhaseCount, opts ...grpc.CallOption) (*ProcessPhaseCount, error) ConfigurePhase(ctx context.Context, in *ProcessPhaseConfig, opts ...grpc.CallOption) (*ProcessPhaseConfig, error) ValidateConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessConfigValidation, error) ConfigureGlobalGPIO(ctx context.Context, in *GlobalGPIOConfig, opts ...grpc.CallOption) (*GlobalGPIOConfig, error) EnableProcess(ctx context.Context, in *ProcessConfig, opts ...grpc.CallOption) (*ProcessConfig, error) Status(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProcessStatus, error) }
ProcessClient is the client API for Process 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 NewProcessClient ¶
func NewProcessClient(cc grpc.ClientConnInterface) ProcessClient
type ProcessConfig ¶
type ProcessConfig struct { Enable bool `protobuf:"varint,1,opt,name=Enable,proto3" json:"Enable,omitempty"` MoveToNext bool `protobuf:"varint,2,opt,name=MoveToNext,proto3" json:"MoveToNext,omitempty"` Disable bool `protobuf:"varint,3,opt,name=Disable,proto3" json:"Disable,omitempty"` // contains filtered or unexported fields }
func (*ProcessConfig) Descriptor
deprecated
func (*ProcessConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProcessConfig.ProtoReflect.Descriptor instead.
func (*ProcessConfig) GetDisable ¶
func (x *ProcessConfig) GetDisable() bool
func (*ProcessConfig) GetEnable ¶
func (x *ProcessConfig) GetEnable() bool
func (*ProcessConfig) GetMoveToNext ¶
func (x *ProcessConfig) GetMoveToNext() bool
func (*ProcessConfig) ProtoMessage ¶
func (*ProcessConfig) ProtoMessage()
func (*ProcessConfig) ProtoReflect ¶
func (x *ProcessConfig) ProtoReflect() protoreflect.Message
func (*ProcessConfig) Reset ¶
func (x *ProcessConfig) Reset()
func (*ProcessConfig) String ¶
func (x *ProcessConfig) String() string
type ProcessConfigValidation ¶
type ProcessConfigValidation struct { Valid bool `protobuf:"varint,1,opt,name=Valid,proto3" json:"Valid,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*ProcessConfigValidation) Descriptor
deprecated
func (*ProcessConfigValidation) Descriptor() ([]byte, []int)
Deprecated: Use ProcessConfigValidation.ProtoReflect.Descriptor instead.
func (*ProcessConfigValidation) GetError ¶
func (x *ProcessConfigValidation) GetError() string
func (*ProcessConfigValidation) GetValid ¶
func (x *ProcessConfigValidation) GetValid() bool
func (*ProcessConfigValidation) ProtoMessage ¶
func (*ProcessConfigValidation) ProtoMessage()
func (*ProcessConfigValidation) ProtoReflect ¶
func (x *ProcessConfigValidation) ProtoReflect() protoreflect.Message
func (*ProcessConfigValidation) Reset ¶
func (x *ProcessConfigValidation) Reset()
func (*ProcessConfigValidation) String ¶
func (x *ProcessConfigValidation) String() string
type ProcessGlobalConfig ¶
type ProcessGlobalConfig struct { Count int32 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"` PhaseConfig []*ProcessPhaseConfig `protobuf:"bytes,2,rep,name=PhaseConfig,proto3" json:"PhaseConfig,omitempty"` GlobalGPIOConfig []*GPIOPhaseConfig `protobuf:"bytes,3,rep,name=GlobalGPIOConfig,proto3" json:"GlobalGPIOConfig,omitempty"` Sensors []string `protobuf:"bytes,4,rep,name=Sensors,proto3" json:"Sensors,omitempty"` // contains filtered or unexported fields }
func (*ProcessGlobalConfig) Descriptor
deprecated
func (*ProcessGlobalConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProcessGlobalConfig.ProtoReflect.Descriptor instead.
func (*ProcessGlobalConfig) GetCount ¶
func (x *ProcessGlobalConfig) GetCount() int32
func (*ProcessGlobalConfig) GetGlobalGPIOConfig ¶
func (x *ProcessGlobalConfig) GetGlobalGPIOConfig() []*GPIOPhaseConfig
func (*ProcessGlobalConfig) GetPhaseConfig ¶
func (x *ProcessGlobalConfig) GetPhaseConfig() []*ProcessPhaseConfig
func (*ProcessGlobalConfig) GetSensors ¶
func (x *ProcessGlobalConfig) GetSensors() []string
func (*ProcessGlobalConfig) ProtoMessage ¶
func (*ProcessGlobalConfig) ProtoMessage()
func (*ProcessGlobalConfig) ProtoReflect ¶
func (x *ProcessGlobalConfig) ProtoReflect() protoreflect.Message
func (*ProcessGlobalConfig) Reset ¶
func (x *ProcessGlobalConfig) Reset()
func (*ProcessGlobalConfig) String ¶
func (x *ProcessGlobalConfig) String() string
type ProcessPhaseConfig ¶
type ProcessPhaseConfig struct { Number *PhaseNumber `protobuf:"bytes,1,opt,name=Number,proto3" json:"Number,omitempty"` Next *MoveToNextConfig `protobuf:"bytes,2,opt,name=Next,proto3" json:"Next,omitempty"` Heaters []*HeaterPhaseConfig `protobuf:"bytes,3,rep,name=Heaters,proto3" json:"Heaters,omitempty"` GPIO []*GPIOPhaseConfig `protobuf:"bytes,4,rep,name=GPIO,proto3" json:"GPIO,omitempty"` // contains filtered or unexported fields }
func (*ProcessPhaseConfig) Descriptor
deprecated
func (*ProcessPhaseConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProcessPhaseConfig.ProtoReflect.Descriptor instead.
func (*ProcessPhaseConfig) GetGPIO ¶
func (x *ProcessPhaseConfig) GetGPIO() []*GPIOPhaseConfig
func (*ProcessPhaseConfig) GetHeaters ¶
func (x *ProcessPhaseConfig) GetHeaters() []*HeaterPhaseConfig
func (*ProcessPhaseConfig) GetNext ¶
func (x *ProcessPhaseConfig) GetNext() *MoveToNextConfig
func (*ProcessPhaseConfig) GetNumber ¶
func (x *ProcessPhaseConfig) GetNumber() *PhaseNumber
func (*ProcessPhaseConfig) ProtoMessage ¶
func (*ProcessPhaseConfig) ProtoMessage()
func (*ProcessPhaseConfig) ProtoReflect ¶
func (x *ProcessPhaseConfig) ProtoReflect() protoreflect.Message
func (*ProcessPhaseConfig) Reset ¶
func (x *ProcessPhaseConfig) Reset()
func (*ProcessPhaseConfig) String ¶
func (x *ProcessPhaseConfig) String() string
type ProcessPhaseCount ¶
type ProcessPhaseCount struct { Count int32 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"` // contains filtered or unexported fields }
func (*ProcessPhaseCount) Descriptor
deprecated
func (*ProcessPhaseCount) Descriptor() ([]byte, []int)
Deprecated: Use ProcessPhaseCount.ProtoReflect.Descriptor instead.
func (*ProcessPhaseCount) GetCount ¶
func (x *ProcessPhaseCount) GetCount() int32
func (*ProcessPhaseCount) ProtoMessage ¶
func (*ProcessPhaseCount) ProtoMessage()
func (*ProcessPhaseCount) ProtoReflect ¶
func (x *ProcessPhaseCount) ProtoReflect() protoreflect.Message
func (*ProcessPhaseCount) Reset ¶
func (x *ProcessPhaseCount) Reset()
func (*ProcessPhaseCount) String ¶
func (x *ProcessPhaseCount) String() string
type ProcessServer ¶
type ProcessServer interface { GetGlobalConfig(context.Context, *empty.Empty) (*ProcessGlobalConfig, error) GetPhaseCount(context.Context, *empty.Empty) (*ProcessPhaseCount, error) GetPhaseConfig(context.Context, *PhaseNumber) (*ProcessPhaseConfig, error) ConfigurePhaseCount(context.Context, *ProcessPhaseCount) (*ProcessPhaseCount, error) ConfigurePhase(context.Context, *ProcessPhaseConfig) (*ProcessPhaseConfig, error) ValidateConfig(context.Context, *empty.Empty) (*ProcessConfigValidation, error) ConfigureGlobalGPIO(context.Context, *GlobalGPIOConfig) (*GlobalGPIOConfig, error) EnableProcess(context.Context, *ProcessConfig) (*ProcessConfig, error) Status(context.Context, *empty.Empty) (*ProcessStatus, error) // contains filtered or unexported methods }
ProcessServer is the server API for Process service. All implementations must embed UnimplementedProcessServer for forward compatibility
type ProcessStatus ¶
type ProcessStatus struct { Running bool `protobuf:"varint,1,opt,name=Running,proto3" json:"Running,omitempty"` Done bool `protobuf:"varint,2,opt,name=Done,proto3" json:"Done,omitempty"` PhaseNumber int32 `protobuf:"varint,3,opt,name=PhaseNumber,proto3" json:"PhaseNumber,omitempty"` StartTime int64 `protobuf:"varint,4,opt,name=StartTime,proto3" json:"StartTime,omitempty"` EndTime int64 `protobuf:"varint,5,opt,name=EndTime,proto3" json:"EndTime,omitempty"` Next *MoveToNextStatus `protobuf:"bytes,6,opt,name=Next,proto3" json:"Next,omitempty"` Heaters []*HeaterPhaseStatus `protobuf:"bytes,7,rep,name=Heaters,proto3" json:"Heaters,omitempty"` Temperature []*TemperaturePhaseStatus `protobuf:"bytes,8,rep,name=Temperature,proto3" json:"Temperature,omitempty"` GPIO []*GPIOPhaseStatus `protobuf:"bytes,9,rep,name=GPIO,proto3" json:"GPIO,omitempty"` Errors []string `protobuf:"bytes,10,rep,name=Errors,proto3" json:"Errors,omitempty"` // contains filtered or unexported fields }
func (*ProcessStatus) Descriptor
deprecated
func (*ProcessStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProcessStatus.ProtoReflect.Descriptor instead.
func (*ProcessStatus) GetDone ¶
func (x *ProcessStatus) GetDone() bool
func (*ProcessStatus) GetEndTime ¶
func (x *ProcessStatus) GetEndTime() int64
func (*ProcessStatus) GetErrors ¶
func (x *ProcessStatus) GetErrors() []string
func (*ProcessStatus) GetGPIO ¶
func (x *ProcessStatus) GetGPIO() []*GPIOPhaseStatus
func (*ProcessStatus) GetHeaters ¶
func (x *ProcessStatus) GetHeaters() []*HeaterPhaseStatus
func (*ProcessStatus) GetNext ¶
func (x *ProcessStatus) GetNext() *MoveToNextStatus
func (*ProcessStatus) GetPhaseNumber ¶
func (x *ProcessStatus) GetPhaseNumber() int32
func (*ProcessStatus) GetRunning ¶
func (x *ProcessStatus) GetRunning() bool
func (*ProcessStatus) GetStartTime ¶
func (x *ProcessStatus) GetStartTime() int64
func (*ProcessStatus) GetTemperature ¶
func (x *ProcessStatus) GetTemperature() []*TemperaturePhaseStatus
func (*ProcessStatus) ProtoMessage ¶
func (*ProcessStatus) ProtoMessage()
func (*ProcessStatus) ProtoReflect ¶
func (x *ProcessStatus) ProtoReflect() protoreflect.Message
func (*ProcessStatus) Reset ¶
func (x *ProcessStatus) Reset()
func (*ProcessStatus) String ¶
func (x *ProcessStatus) String() string
type TemperaturePhaseStatus ¶
type TemperaturePhaseStatus 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"` // contains filtered or unexported fields }
func (*TemperaturePhaseStatus) Descriptor
deprecated
func (*TemperaturePhaseStatus) Descriptor() ([]byte, []int)
Deprecated: Use TemperaturePhaseStatus.ProtoReflect.Descriptor instead.
func (*TemperaturePhaseStatus) GetID ¶
func (x *TemperaturePhaseStatus) GetID() string
func (*TemperaturePhaseStatus) GetTemperature ¶
func (x *TemperaturePhaseStatus) GetTemperature() float32
func (*TemperaturePhaseStatus) ProtoMessage ¶
func (*TemperaturePhaseStatus) ProtoMessage()
func (*TemperaturePhaseStatus) ProtoReflect ¶
func (x *TemperaturePhaseStatus) ProtoReflect() protoreflect.Message
func (*TemperaturePhaseStatus) Reset ¶
func (x *TemperaturePhaseStatus) Reset()
func (*TemperaturePhaseStatus) String ¶
func (x *TemperaturePhaseStatus) 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 UnimplementedProcessServer ¶
type UnimplementedProcessServer struct { }
UnimplementedProcessServer must be embedded to have forward compatible implementations.
func (UnimplementedProcessServer) ConfigureGlobalGPIO ¶
func (UnimplementedProcessServer) ConfigureGlobalGPIO(context.Context, *GlobalGPIOConfig) (*GlobalGPIOConfig, error)
func (UnimplementedProcessServer) ConfigurePhase ¶
func (UnimplementedProcessServer) ConfigurePhase(context.Context, *ProcessPhaseConfig) (*ProcessPhaseConfig, error)
func (UnimplementedProcessServer) ConfigurePhaseCount ¶
func (UnimplementedProcessServer) ConfigurePhaseCount(context.Context, *ProcessPhaseCount) (*ProcessPhaseCount, error)
func (UnimplementedProcessServer) EnableProcess ¶
func (UnimplementedProcessServer) EnableProcess(context.Context, *ProcessConfig) (*ProcessConfig, error)
func (UnimplementedProcessServer) GetGlobalConfig ¶
func (UnimplementedProcessServer) GetGlobalConfig(context.Context, *empty.Empty) (*ProcessGlobalConfig, error)
func (UnimplementedProcessServer) GetPhaseConfig ¶
func (UnimplementedProcessServer) GetPhaseConfig(context.Context, *PhaseNumber) (*ProcessPhaseConfig, error)
func (UnimplementedProcessServer) GetPhaseCount ¶
func (UnimplementedProcessServer) GetPhaseCount(context.Context, *empty.Empty) (*ProcessPhaseCount, error)
func (UnimplementedProcessServer) Status ¶
func (UnimplementedProcessServer) Status(context.Context, *empty.Empty) (*ProcessStatus, error)
func (UnimplementedProcessServer) ValidateConfig ¶
func (UnimplementedProcessServer) ValidateConfig(context.Context, *empty.Empty) (*ProcessConfigValidation, 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.
type UnsafeProcessServer ¶
type UnsafeProcessServer interface {
// contains filtered or unexported methods
}
UnsafeProcessServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProcessServer will result in compilation errors.