Documentation ¶
Index ¶
- Variables
- func New(version string) func() *schema.Provider
- func RegisterSetgpioServer(s grpc.ServiceRegistrar, srv SetgpioServer)
- type BME280Request
- func (*BME280Request) Descriptor() ([]byte, []int)deprecated
- func (x *BME280Request) GetI2Caddr() uint64
- func (x *BME280Request) GetI2Cbus() string
- func (*BME280Request) ProtoMessage()
- func (x *BME280Request) ProtoReflect() protoreflect.Message
- func (x *BME280Request) Reset()
- func (x *BME280Request) String() string
- type FanControllerRequest
- func (*FanControllerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FanControllerRequest) GetBME280DevicePin() string
- func (x *FanControllerRequest) GetDutyCycleMax() uint64
- func (x *FanControllerRequest) GetDutyCycleMin() uint64
- func (x *FanControllerRequest) GetFanDevicePin() string
- func (x *FanControllerRequest) GetTemperatureMax() uint64
- func (x *FanControllerRequest) GetTemperatureMin() uint64
- func (x *FanControllerRequest) GetTimeInterval() uint64
- func (*FanControllerRequest) ProtoMessage()
- func (x *FanControllerRequest) ProtoReflect() protoreflect.Message
- func (x *FanControllerRequest) Reset()
- func (x *FanControllerRequest) String() string
- type FanControllerResponse
- func (*FanControllerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FanControllerResponse) GetPinCombo() string
- func (*FanControllerResponse) ProtoMessage()
- func (x *FanControllerResponse) ProtoReflect() protoreflect.Message
- func (x *FanControllerResponse) Reset()
- func (x *FanControllerResponse) String() string
- type PWMRequest
- func (*PWMRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PWMRequest) GetDutycycle() string
- func (x *PWMRequest) GetFrequency() string
- func (x *PWMRequest) GetPin() string
- func (*PWMRequest) ProtoMessage()
- func (x *PWMRequest) ProtoReflect() protoreflect.Message
- func (x *PWMRequest) Reset()
- func (x *PWMRequest) String() string
- type PWMResponse
- type PinSetResponse
- type SetgpioClient
- type SetgpioServer
- type UnimplementedSetgpioServer
- func (UnimplementedSetgpioServer) PWMDutyCycleOutput_BME280TempInput(context.Context, *FanControllerRequest) (*FanControllerResponse, error)
- func (UnimplementedSetgpioServer) SetBME280(context.Context, *BME280Request) (*PinSetResponse, error)
- func (UnimplementedSetgpioServer) SetPWM(context.Context, *PWMRequest) (*PinSetResponse, error)
- type UnsafeSetgpioServer
Constants ¶
This section is empty.
Variables ¶
var File_provider_proto protoreflect.FileDescriptor
var Setgpio_ServiceDesc = grpc.ServiceDesc{ ServiceName: "provider.setgpio", HandlerType: (*SetgpioServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetPWM", Handler: _Setgpio_SetPWM_Handler, }, { MethodName: "SetBME280", Handler: _Setgpio_SetBME280_Handler, }, { MethodName: "PWMDutyCycleOutput_BME280TempInput", Handler: _Setgpio_PWMDutyCycleOutput_BME280TempInput_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "provider.proto", }
Setgpio_ServiceDesc is the grpc.ServiceDesc for Setgpio service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSetgpioServer ¶
func RegisterSetgpioServer(s grpc.ServiceRegistrar, srv SetgpioServer)
Types ¶
type BME280Request ¶
type BME280Request struct { I2Cbus string `protobuf:"bytes,1,opt,name=I2Cbus,proto3" json:"I2Cbus,omitempty"` I2Caddr uint64 `protobuf:"varint,2,opt,name=I2Caddr,proto3" json:"I2Caddr,omitempty"` // format is 0x76 // contains filtered or unexported fields }
func (*BME280Request) Descriptor
deprecated
func (*BME280Request) Descriptor() ([]byte, []int)
Deprecated: Use BME280Request.ProtoReflect.Descriptor instead.
func (*BME280Request) GetI2Caddr ¶
func (x *BME280Request) GetI2Caddr() uint64
func (*BME280Request) GetI2Cbus ¶
func (x *BME280Request) GetI2Cbus() string
func (*BME280Request) ProtoMessage ¶
func (*BME280Request) ProtoMessage()
func (*BME280Request) ProtoReflect ¶
func (x *BME280Request) ProtoReflect() protoreflect.Message
func (*BME280Request) Reset ¶
func (x *BME280Request) Reset()
func (*BME280Request) String ¶
func (x *BME280Request) String() string
type FanControllerRequest ¶
type FanControllerRequest struct { TimeInterval uint64 `protobuf:"varint,1,opt,name=timeInterval,proto3" json:"timeInterval,omitempty"` BME280DevicePin string `protobuf:"bytes,2,opt,name=BME280DevicePin,proto3" json:"BME280DevicePin,omitempty"` TemperatureMax uint64 `protobuf:"varint,3,opt,name=temperatureMax,proto3" json:"temperatureMax,omitempty"` TemperatureMin uint64 `protobuf:"varint,4,opt,name=temperatureMin,proto3" json:"temperatureMin,omitempty"` FanDevicePin string `protobuf:"bytes,5,opt,name=fanDevicePin,proto3" json:"fanDevicePin,omitempty"` DutyCycleMax uint64 `protobuf:"varint,6,opt,name=dutyCycleMax,proto3" json:"dutyCycleMax,omitempty"` DutyCycleMin uint64 `protobuf:"varint,7,opt,name=dutyCycleMin,proto3" json:"dutyCycleMin,omitempty"` // contains filtered or unexported fields }
func (*FanControllerRequest) Descriptor
deprecated
func (*FanControllerRequest) Descriptor() ([]byte, []int)
Deprecated: Use FanControllerRequest.ProtoReflect.Descriptor instead.
func (*FanControllerRequest) GetBME280DevicePin ¶
func (x *FanControllerRequest) GetBME280DevicePin() string
func (*FanControllerRequest) GetDutyCycleMax ¶
func (x *FanControllerRequest) GetDutyCycleMax() uint64
func (*FanControllerRequest) GetDutyCycleMin ¶
func (x *FanControllerRequest) GetDutyCycleMin() uint64
func (*FanControllerRequest) GetFanDevicePin ¶
func (x *FanControllerRequest) GetFanDevicePin() string
func (*FanControllerRequest) GetTemperatureMax ¶
func (x *FanControllerRequest) GetTemperatureMax() uint64
func (*FanControllerRequest) GetTemperatureMin ¶
func (x *FanControllerRequest) GetTemperatureMin() uint64
func (*FanControllerRequest) GetTimeInterval ¶
func (x *FanControllerRequest) GetTimeInterval() uint64
func (*FanControllerRequest) ProtoMessage ¶
func (*FanControllerRequest) ProtoMessage()
func (*FanControllerRequest) ProtoReflect ¶
func (x *FanControllerRequest) ProtoReflect() protoreflect.Message
func (*FanControllerRequest) Reset ¶
func (x *FanControllerRequest) Reset()
func (*FanControllerRequest) String ¶
func (x *FanControllerRequest) String() string
type FanControllerResponse ¶
type FanControllerResponse struct { PinCombo string `protobuf:"bytes,1,opt,name=pinCombo,proto3" json:"pinCombo,omitempty"` // contains filtered or unexported fields }
func (*FanControllerResponse) Descriptor
deprecated
func (*FanControllerResponse) Descriptor() ([]byte, []int)
Deprecated: Use FanControllerResponse.ProtoReflect.Descriptor instead.
func (*FanControllerResponse) GetPinCombo ¶
func (x *FanControllerResponse) GetPinCombo() string
func (*FanControllerResponse) ProtoMessage ¶
func (*FanControllerResponse) ProtoMessage()
func (*FanControllerResponse) ProtoReflect ¶
func (x *FanControllerResponse) ProtoReflect() protoreflect.Message
func (*FanControllerResponse) Reset ¶
func (x *FanControllerResponse) Reset()
func (*FanControllerResponse) String ¶
func (x *FanControllerResponse) String() string
type PWMRequest ¶
type PWMRequest struct { Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` // GPIO to be configured for PWM in GPIO standard format (i.e. GPIO6) Dutycycle string `protobuf:"bytes,2,opt,name=dutycycle,proto3" json:"dutycycle,omitempty"` // Duty cycle for the PWM pin being configured as "nn%" where nn is 00 - 100 Frequency string `protobuf:"bytes,3,opt,name=frequency,proto3" json:"frequency,omitempty"` // Frequency of the signal in the format "nM" where "n" is the numerical value and "M" is Megahertz // contains filtered or unexported fields }
func (*PWMRequest) Descriptor
deprecated
func (*PWMRequest) Descriptor() ([]byte, []int)
Deprecated: Use PWMRequest.ProtoReflect.Descriptor instead.
func (*PWMRequest) GetDutycycle ¶
func (x *PWMRequest) GetDutycycle() string
func (*PWMRequest) GetFrequency ¶
func (x *PWMRequest) GetFrequency() string
func (*PWMRequest) GetPin ¶
func (x *PWMRequest) GetPin() string
func (*PWMRequest) ProtoMessage ¶
func (*PWMRequest) ProtoMessage()
func (*PWMRequest) ProtoReflect ¶
func (x *PWMRequest) ProtoReflect() protoreflect.Message
func (*PWMRequest) Reset ¶
func (x *PWMRequest) Reset()
func (*PWMRequest) String ¶
func (x *PWMRequest) String() string
type PWMResponse ¶
type PWMResponse struct { Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` // contains filtered or unexported fields }
func (*PWMResponse) Descriptor
deprecated
func (*PWMResponse) Descriptor() ([]byte, []int)
Deprecated: Use PWMResponse.ProtoReflect.Descriptor instead.
func (*PWMResponse) GetVerified ¶
func (x *PWMResponse) GetVerified() bool
func (*PWMResponse) ProtoMessage ¶
func (*PWMResponse) ProtoMessage()
func (*PWMResponse) ProtoReflect ¶
func (x *PWMResponse) ProtoReflect() protoreflect.Message
func (*PWMResponse) Reset ¶
func (x *PWMResponse) Reset()
func (*PWMResponse) String ¶
func (x *PWMResponse) String() string
type PinSetResponse ¶
type PinSetResponse struct { PinNumber string `protobuf:"bytes,1,opt,name=pinNumber,proto3" json:"pinNumber,omitempty"` // contains filtered or unexported fields }
func (*PinSetResponse) Descriptor
deprecated
func (*PinSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PinSetResponse.ProtoReflect.Descriptor instead.
func (*PinSetResponse) GetPinNumber ¶
func (x *PinSetResponse) GetPinNumber() string
func (*PinSetResponse) ProtoMessage ¶
func (*PinSetResponse) ProtoMessage()
func (*PinSetResponse) ProtoReflect ¶
func (x *PinSetResponse) ProtoReflect() protoreflect.Message
func (*PinSetResponse) Reset ¶
func (x *PinSetResponse) Reset()
func (*PinSetResponse) String ¶
func (x *PinSetResponse) String() string
type SetgpioClient ¶
type SetgpioClient interface { SetPWM(ctx context.Context, in *PWMRequest, opts ...grpc.CallOption) (*PinSetResponse, error) SetBME280(ctx context.Context, in *BME280Request, opts ...grpc.CallOption) (*PinSetResponse, error) PWMDutyCycleOutput_BME280TempInput(ctx context.Context, in *FanControllerRequest, opts ...grpc.CallOption) (*FanControllerResponse, error) }
SetgpioClient is the client API for Setgpio 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 NewSetgpioClient ¶
func NewSetgpioClient(cc grpc.ClientConnInterface) SetgpioClient
type SetgpioServer ¶
type SetgpioServer interface { SetPWM(context.Context, *PWMRequest) (*PinSetResponse, error) SetBME280(context.Context, *BME280Request) (*PinSetResponse, error) PWMDutyCycleOutput_BME280TempInput(context.Context, *FanControllerRequest) (*FanControllerResponse, error) // contains filtered or unexported methods }
SetgpioServer is the server API for Setgpio service. All implementations must embed UnimplementedSetgpioServer for forward compatibility
type UnimplementedSetgpioServer ¶
type UnimplementedSetgpioServer struct { }
UnimplementedSetgpioServer must be embedded to have forward compatible implementations.
func (UnimplementedSetgpioServer) PWMDutyCycleOutput_BME280TempInput ¶
func (UnimplementedSetgpioServer) PWMDutyCycleOutput_BME280TempInput(context.Context, *FanControllerRequest) (*FanControllerResponse, error)
func (UnimplementedSetgpioServer) SetBME280 ¶
func (UnimplementedSetgpioServer) SetBME280(context.Context, *BME280Request) (*PinSetResponse, error)
func (UnimplementedSetgpioServer) SetPWM ¶
func (UnimplementedSetgpioServer) SetPWM(context.Context, *PWMRequest) (*PinSetResponse, error)
type UnsafeSetgpioServer ¶
type UnsafeSetgpioServer interface {
// contains filtered or unexported methods
}
UnsafeSetgpioServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SetgpioServer will result in compilation errors.