Documentation
¶
Index ¶
- Variables
- func RegisterDeviceManagerServiceServer(s *grpc.Server, srv DeviceManagerServiceServer)
- func RegisterDeviceMapperServiceServer(s *grpc.Server, srv DeviceMapperServiceServer)
- type BluetoothOperations
- func (*BluetoothOperations) Descriptor() ([]byte, []int)deprecated
- func (x *BluetoothOperations) GetOperationType() string
- func (x *BluetoothOperations) GetOperationValue() float64
- func (*BluetoothOperations) ProtoMessage()
- func (x *BluetoothOperations) ProtoReflect() protoreflect.Message
- func (x *BluetoothOperations) Reset()
- func (x *BluetoothOperations) String() string
- type BluetoothReadConverter
- func (*BluetoothReadConverter) Descriptor() ([]byte, []int)deprecated
- func (x *BluetoothReadConverter) GetEndIndex() int64
- func (x *BluetoothReadConverter) GetOrderOfOperations() []*BluetoothOperations
- func (x *BluetoothReadConverter) GetShiftLeft() uint64
- func (x *BluetoothReadConverter) GetShiftRight() uint64
- func (x *BluetoothReadConverter) GetStartIndex() int64
- func (*BluetoothReadConverter) ProtoMessage()
- func (x *BluetoothReadConverter) ProtoReflect() protoreflect.Message
- func (x *BluetoothReadConverter) Reset()
- func (x *BluetoothReadConverter) String() string
- type CreateDeviceModelRequest
- func (*CreateDeviceModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceModelRequest) GetModel() *DeviceModel
- func (*CreateDeviceModelRequest) ProtoMessage()
- func (x *CreateDeviceModelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceModelRequest) Reset()
- func (x *CreateDeviceModelRequest) String() string
- type CreateDeviceModelResponse
- func (*CreateDeviceModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceModelResponse) GetDeviceModelName() string
- func (*CreateDeviceModelResponse) ProtoMessage()
- func (x *CreateDeviceModelResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceModelResponse) Reset()
- func (x *CreateDeviceModelResponse) String() string
- type CustomizedValue
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetName() string
- func (x *Device) GetSpec() *DeviceSpec
- func (x *Device) GetStatus() *DeviceStatus
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type DeviceCommand
- func (*DeviceCommand) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceCommand) GetMethod() string
- func (x *DeviceCommand) GetName() string
- func (x *DeviceCommand) GetParameters() []string
- func (x *DeviceCommand) GetResponse() []byte
- func (x *DeviceCommand) GetStatusCode() []string
- func (x *DeviceCommand) GetUrl() string
- func (*DeviceCommand) ProtoMessage()
- func (x *DeviceCommand) ProtoReflect() protoreflect.Message
- func (x *DeviceCommand) Reset()
- func (x *DeviceCommand) String() string
- type DeviceManagerServiceClient
- type DeviceManagerServiceServer
- type DeviceMapperServiceClient
- type DeviceMapperServiceServer
- type DeviceModel
- func (*DeviceModel) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceModel) GetName() string
- func (x *DeviceModel) GetSpec() *DeviceModelSpec
- func (*DeviceModel) ProtoMessage()
- func (x *DeviceModel) ProtoReflect() protoreflect.Message
- func (x *DeviceModel) Reset()
- func (x *DeviceModel) String() string
- type DeviceModelSpec
- func (*DeviceModelSpec) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceModelSpec) GetCommands() []*DeviceCommand
- func (x *DeviceModelSpec) GetProperties() []*DeviceProperty
- func (x *DeviceModelSpec) GetProtocol() string
- func (*DeviceModelSpec) ProtoMessage()
- func (x *DeviceModelSpec) ProtoReflect() protoreflect.Message
- func (x *DeviceModelSpec) Reset()
- func (x *DeviceModelSpec) String() string
- type DeviceProperty
- func (*DeviceProperty) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceProperty) GetDescription() string
- func (x *DeviceProperty) GetName() string
- func (x *DeviceProperty) GetType() *PropertyType
- func (*DeviceProperty) ProtoMessage()
- func (x *DeviceProperty) ProtoReflect() protoreflect.Message
- func (x *DeviceProperty) Reset()
- func (x *DeviceProperty) String() string
- type DevicePropertyVisitor
- func (*DevicePropertyVisitor) Descriptor() ([]byte, []int)deprecated
- func (x *DevicePropertyVisitor) GetBluetooth() *VisitorConfigBluetooth
- func (x *DevicePropertyVisitor) GetCollectCycle() int64
- func (x *DevicePropertyVisitor) GetCustomizedProtocol() *VisitorConfigCustomized
- func (x *DevicePropertyVisitor) GetCustomizedValues() *CustomizedValue
- func (x *DevicePropertyVisitor) GetModbus() *VisitorConfigModbus
- func (x *DevicePropertyVisitor) GetOpcua() *VisitorConfigOPCUA
- func (x *DevicePropertyVisitor) GetPropertyName() string
- func (x *DevicePropertyVisitor) GetReportCycle() int64
- func (*DevicePropertyVisitor) ProtoMessage()
- func (x *DevicePropertyVisitor) ProtoReflect() protoreflect.Message
- func (x *DevicePropertyVisitor) Reset()
- func (x *DevicePropertyVisitor) String() string
- type DeviceSpec
- func (*DeviceSpec) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSpec) GetDeviceModelReference() string
- func (x *DeviceSpec) GetPropertyVisitors() []*DevicePropertyVisitor
- func (x *DeviceSpec) GetProtocol() *ProtocolConfig
- func (*DeviceSpec) ProtoMessage()
- func (x *DeviceSpec) ProtoReflect() protoreflect.Message
- func (x *DeviceSpec) Reset()
- func (x *DeviceSpec) String() string
- type DeviceStatus
- func (*DeviceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceStatus) GetState() string
- func (x *DeviceStatus) GetTwins() []*Twin
- func (*DeviceStatus) ProtoMessage()
- func (x *DeviceStatus) ProtoReflect() protoreflect.Message
- func (x *DeviceStatus) Reset()
- func (x *DeviceStatus) String() string
- type GetDeviceRequest
- type GetDeviceResponse
- type MapperInfo
- func (*MapperInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MapperInfo) GetAddress() []byte
- func (x *MapperInfo) GetApiVersion() string
- func (x *MapperInfo) GetName() string
- func (x *MapperInfo) GetProtocol() string
- func (x *MapperInfo) GetState() string
- func (x *MapperInfo) GetVersion() string
- func (*MapperInfo) ProtoMessage()
- func (x *MapperInfo) ProtoReflect() protoreflect.Message
- func (x *MapperInfo) Reset()
- func (x *MapperInfo) String() string
- type MapperRegisterRequest
- func (*MapperRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MapperRegisterRequest) GetMapper() *MapperInfo
- func (x *MapperRegisterRequest) GetWithData() bool
- func (*MapperRegisterRequest) ProtoMessage()
- func (x *MapperRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *MapperRegisterRequest) Reset()
- func (x *MapperRegisterRequest) String() string
- type MapperRegisterResponse
- func (*MapperRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MapperRegisterResponse) GetDeviceList() []*Device
- func (x *MapperRegisterResponse) GetModelList() []*DeviceModel
- func (*MapperRegisterResponse) ProtoMessage()
- func (x *MapperRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *MapperRegisterResponse) Reset()
- func (x *MapperRegisterResponse) String() string
- type PropertyType
- func (*PropertyType) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyType) GetBoolean() *PropertyTypeBoolean
- func (x *PropertyType) GetBytes() *PropertyTypeBytes
- func (x *PropertyType) GetDouble() *PropertyTypeDouble
- func (x *PropertyType) GetFloat() *PropertyTypeFloat
- func (x *PropertyType) GetInt() *PropertyTypeInt64
- func (x *PropertyType) GetString_() *PropertyTypeString
- func (*PropertyType) ProtoMessage()
- func (x *PropertyType) ProtoReflect() protoreflect.Message
- func (x *PropertyType) Reset()
- func (x *PropertyType) String() string
- type PropertyTypeBoolean
- func (*PropertyTypeBoolean) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeBoolean) GetAccessMode() string
- func (x *PropertyTypeBoolean) GetDefaultValue() bool
- func (*PropertyTypeBoolean) ProtoMessage()
- func (x *PropertyTypeBoolean) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeBoolean) Reset()
- func (x *PropertyTypeBoolean) String() string
- type PropertyTypeBytes
- func (*PropertyTypeBytes) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeBytes) GetAccessMode() string
- func (*PropertyTypeBytes) ProtoMessage()
- func (x *PropertyTypeBytes) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeBytes) Reset()
- func (x *PropertyTypeBytes) String() string
- type PropertyTypeDouble
- func (*PropertyTypeDouble) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeDouble) GetAccessMode() string
- func (x *PropertyTypeDouble) GetDefaultValue() float64
- func (x *PropertyTypeDouble) GetMaximum() float64
- func (x *PropertyTypeDouble) GetMinimum() float64
- func (x *PropertyTypeDouble) GetUnit() string
- func (*PropertyTypeDouble) ProtoMessage()
- func (x *PropertyTypeDouble) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeDouble) Reset()
- func (x *PropertyTypeDouble) String() string
- type PropertyTypeFloat
- func (*PropertyTypeFloat) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeFloat) GetAccessMode() string
- func (x *PropertyTypeFloat) GetDefaultValue() float32
- func (x *PropertyTypeFloat) GetMaximum() float32
- func (x *PropertyTypeFloat) GetMinimum() float32
- func (x *PropertyTypeFloat) GetUnit() string
- func (*PropertyTypeFloat) ProtoMessage()
- func (x *PropertyTypeFloat) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeFloat) Reset()
- func (x *PropertyTypeFloat) String() string
- type PropertyTypeInt64
- func (*PropertyTypeInt64) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeInt64) GetAccessMode() string
- func (x *PropertyTypeInt64) GetDefaultValue() int64
- func (x *PropertyTypeInt64) GetMaximum() int64
- func (x *PropertyTypeInt64) GetMinimum() int64
- func (x *PropertyTypeInt64) GetUnit() string
- func (*PropertyTypeInt64) ProtoMessage()
- func (x *PropertyTypeInt64) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeInt64) Reset()
- func (x *PropertyTypeInt64) String() string
- type PropertyTypeString
- func (*PropertyTypeString) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyTypeString) GetAccessMode() string
- func (x *PropertyTypeString) GetDefaultValue() string
- func (*PropertyTypeString) ProtoMessage()
- func (x *PropertyTypeString) ProtoReflect() protoreflect.Message
- func (x *PropertyTypeString) Reset()
- func (x *PropertyTypeString) String() string
- type ProtocolConfig
- func (*ProtocolConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfig) GetBluetooth() *ProtocolConfigBluetooth
- func (x *ProtocolConfig) GetCommon() *ProtocolConfigCommon
- func (x *ProtocolConfig) GetCustomizedProtocol() *ProtocolConfigCustomized
- func (x *ProtocolConfig) GetModbus() *ProtocolConfigModbus
- func (x *ProtocolConfig) GetOpcua() *ProtocolConfigOpcUA
- func (*ProtocolConfig) ProtoMessage()
- func (x *ProtocolConfig) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfig) Reset()
- func (x *ProtocolConfig) String() string
- type ProtocolConfigBluetooth
- func (*ProtocolConfigBluetooth) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigBluetooth) GetMacAddress() string
- func (*ProtocolConfigBluetooth) ProtoMessage()
- func (x *ProtocolConfigBluetooth) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigBluetooth) Reset()
- func (x *ProtocolConfigBluetooth) String() string
- type ProtocolConfigCOM
- func (*ProtocolConfigCOM) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigCOM) GetBaudRate() int64
- func (x *ProtocolConfigCOM) GetDataBits() int64
- func (x *ProtocolConfigCOM) GetParity() string
- func (x *ProtocolConfigCOM) GetSerialPort() string
- func (x *ProtocolConfigCOM) GetStopBits() int64
- func (*ProtocolConfigCOM) ProtoMessage()
- func (x *ProtocolConfigCOM) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigCOM) Reset()
- func (x *ProtocolConfigCOM) String() string
- type ProtocolConfigCommon
- func (*ProtocolConfigCommon) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigCommon) GetCollectRetryTimes() int64
- func (x *ProtocolConfigCommon) GetCollectTimeout() int64
- func (x *ProtocolConfigCommon) GetCollectType() string
- func (x *ProtocolConfigCommon) GetCom() *ProtocolConfigCOM
- func (x *ProtocolConfigCommon) GetCommType() string
- func (x *ProtocolConfigCommon) GetCustomizedValues() *CustomizedValue
- func (x *ProtocolConfigCommon) GetReconnRetryTimes() int64
- func (x *ProtocolConfigCommon) GetReconnTimeout() int64
- func (x *ProtocolConfigCommon) GetTcp() *ProtocolConfigTCP
- func (*ProtocolConfigCommon) ProtoMessage()
- func (x *ProtocolConfigCommon) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigCommon) Reset()
- func (x *ProtocolConfigCommon) String() string
- type ProtocolConfigCustomized
- func (*ProtocolConfigCustomized) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigCustomized) GetConfigData() *CustomizedValue
- func (x *ProtocolConfigCustomized) GetProtocolName() string
- func (*ProtocolConfigCustomized) ProtoMessage()
- func (x *ProtocolConfigCustomized) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigCustomized) Reset()
- func (x *ProtocolConfigCustomized) String() string
- type ProtocolConfigModbus
- func (*ProtocolConfigModbus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigModbus) GetSlaveID() int64
- func (*ProtocolConfigModbus) ProtoMessage()
- func (x *ProtocolConfigModbus) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigModbus) Reset()
- func (x *ProtocolConfigModbus) String() string
- type ProtocolConfigOpcUA
- func (*ProtocolConfigOpcUA) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigOpcUA) GetCertificate() string
- func (x *ProtocolConfigOpcUA) GetPassword() string
- func (x *ProtocolConfigOpcUA) GetPrivateKey() string
- func (x *ProtocolConfigOpcUA) GetSecurityMode() string
- func (x *ProtocolConfigOpcUA) GetSecurityPolicy() string
- func (x *ProtocolConfigOpcUA) GetTimeout() int64
- func (x *ProtocolConfigOpcUA) GetUrl() string
- func (x *ProtocolConfigOpcUA) GetUserName() string
- func (*ProtocolConfigOpcUA) ProtoMessage()
- func (x *ProtocolConfigOpcUA) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigOpcUA) Reset()
- func (x *ProtocolConfigOpcUA) String() string
- type ProtocolConfigTCP
- func (*ProtocolConfigTCP) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolConfigTCP) GetIp() string
- func (x *ProtocolConfigTCP) GetPort() int64
- func (*ProtocolConfigTCP) ProtoMessage()
- func (x *ProtocolConfigTCP) ProtoReflect() protoreflect.Message
- func (x *ProtocolConfigTCP) Reset()
- func (x *ProtocolConfigTCP) String() string
- type RegisterDeviceRequest
- func (*RegisterDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterDeviceRequest) GetDevice() *Device
- func (*RegisterDeviceRequest) ProtoMessage()
- func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterDeviceRequest) Reset()
- func (x *RegisterDeviceRequest) String() string
- type RegisterDeviceResponse
- func (*RegisterDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterDeviceResponse) GetDeviceName() string
- func (*RegisterDeviceResponse) ProtoMessage()
- func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterDeviceResponse) Reset()
- func (x *RegisterDeviceResponse) String() string
- type RemoveDeviceModelRequest
- func (*RemoveDeviceModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDeviceModelRequest) GetModelName() string
- func (*RemoveDeviceModelRequest) ProtoMessage()
- func (x *RemoveDeviceModelRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveDeviceModelRequest) Reset()
- func (x *RemoveDeviceModelRequest) String() string
- type RemoveDeviceModelResponse
- type RemoveDeviceRequest
- func (*RemoveDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDeviceRequest) GetDeviceName() string
- func (*RemoveDeviceRequest) ProtoMessage()
- func (x *RemoveDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveDeviceRequest) Reset()
- func (x *RemoveDeviceRequest) String() string
- type RemoveDeviceResponse
- type ReportDeviceStatusRequest
- func (*ReportDeviceStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportDeviceStatusRequest) GetDeviceName() string
- func (x *ReportDeviceStatusRequest) GetReportedDevice() *DeviceStatus
- func (*ReportDeviceStatusRequest) ProtoMessage()
- func (x *ReportDeviceStatusRequest) ProtoReflect() protoreflect.Message
- func (x *ReportDeviceStatusRequest) Reset()
- func (x *ReportDeviceStatusRequest) String() string
- type ReportDeviceStatusResponse
- type Twin
- func (*Twin) Descriptor() ([]byte, []int)deprecated
- func (x *Twin) GetDesired() *TwinProperty
- func (x *Twin) GetPropertyName() string
- func (x *Twin) GetReported() *TwinProperty
- func (*Twin) ProtoMessage()
- func (x *Twin) ProtoReflect() protoreflect.Message
- func (x *Twin) Reset()
- func (x *Twin) String() string
- type TwinProperty
- func (*TwinProperty) Descriptor() ([]byte, []int)deprecated
- func (x *TwinProperty) GetMetadata() map[string]string
- func (x *TwinProperty) GetValue() string
- func (*TwinProperty) ProtoMessage()
- func (x *TwinProperty) ProtoReflect() protoreflect.Message
- func (x *TwinProperty) Reset()
- func (x *TwinProperty) String() string
- type UnimplementedDeviceManagerServiceServer
- type UnimplementedDeviceMapperServiceServer
- func (*UnimplementedDeviceMapperServiceServer) CreateDeviceModel(context.Context, *CreateDeviceModelRequest) (*CreateDeviceModelResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) RegisterDevice(context.Context, *RegisterDeviceRequest) (*RegisterDeviceResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) RemoveDevice(context.Context, *RemoveDeviceRequest) (*RemoveDeviceResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) RemoveDeviceModel(context.Context, *RemoveDeviceModelRequest) (*RemoveDeviceModelResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceModel(context.Context, *UpdateDeviceModelRequest) (*UpdateDeviceModelResponse, error)
- func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceStatus(context.Context, *UpdateDeviceStatusRequest) (*UpdateDeviceStatusResponse, error)
- type UpdateDeviceModelRequest
- func (*UpdateDeviceModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceModelRequest) GetModel() *DeviceModel
- func (*UpdateDeviceModelRequest) ProtoMessage()
- func (x *UpdateDeviceModelRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceModelRequest) Reset()
- func (x *UpdateDeviceModelRequest) String() string
- type UpdateDeviceModelResponse
- type UpdateDeviceRequest
- func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceRequest) GetDevice() *Device
- func (*UpdateDeviceRequest) ProtoMessage()
- func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceRequest) Reset()
- func (x *UpdateDeviceRequest) String() string
- type UpdateDeviceResponse
- type UpdateDeviceStatusRequest
- func (*UpdateDeviceStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceStatusRequest) GetDesiredDevice() *DeviceStatus
- func (x *UpdateDeviceStatusRequest) GetDeviceName() string
- func (*UpdateDeviceStatusRequest) ProtoMessage()
- func (x *UpdateDeviceStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceStatusRequest) Reset()
- func (x *UpdateDeviceStatusRequest) String() string
- type UpdateDeviceStatusResponse
- type VisitorConfigBluetooth
- func (*VisitorConfigBluetooth) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorConfigBluetooth) GetCharacteristicUUID() string
- func (x *VisitorConfigBluetooth) GetDataConverter() *BluetoothReadConverter
- func (x *VisitorConfigBluetooth) GetDataWrite() map[string][]byte
- func (*VisitorConfigBluetooth) ProtoMessage()
- func (x *VisitorConfigBluetooth) ProtoReflect() protoreflect.Message
- func (x *VisitorConfigBluetooth) Reset()
- func (x *VisitorConfigBluetooth) String() string
- type VisitorConfigCustomized
- func (*VisitorConfigCustomized) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorConfigCustomized) GetConfigData() *CustomizedValue
- func (x *VisitorConfigCustomized) GetProtocolName() string
- func (*VisitorConfigCustomized) ProtoMessage()
- func (x *VisitorConfigCustomized) ProtoReflect() protoreflect.Message
- func (x *VisitorConfigCustomized) Reset()
- func (x *VisitorConfigCustomized) String() string
- type VisitorConfigModbus
- func (*VisitorConfigModbus) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorConfigModbus) GetIsRegisterSwap() bool
- func (x *VisitorConfigModbus) GetIsSwap() bool
- func (x *VisitorConfigModbus) GetLimit() int64
- func (x *VisitorConfigModbus) GetOffset() int64
- func (x *VisitorConfigModbus) GetRegister() string
- func (x *VisitorConfigModbus) GetScale() float64
- func (*VisitorConfigModbus) ProtoMessage()
- func (x *VisitorConfigModbus) ProtoReflect() protoreflect.Message
- func (x *VisitorConfigModbus) Reset()
- func (x *VisitorConfigModbus) String() string
- type VisitorConfigOPCUA
- func (*VisitorConfigOPCUA) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorConfigOPCUA) GetBrowseName() string
- func (x *VisitorConfigOPCUA) GetNodeID() string
- func (*VisitorConfigOPCUA) ProtoMessage()
- func (x *VisitorConfigOPCUA) ProtoReflect() protoreflect.Message
- func (x *VisitorConfigOPCUA) Reset()
- func (x *VisitorConfigOPCUA) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeviceManagerServiceServer ¶
func RegisterDeviceManagerServiceServer(s *grpc.Server, srv DeviceManagerServiceServer)
func RegisterDeviceMapperServiceServer ¶
func RegisterDeviceMapperServiceServer(s *grpc.Server, srv DeviceMapperServiceServer)
Types ¶
type BluetoothOperations ¶
type BluetoothOperations struct { OperationType string `protobuf:"bytes,1,opt,name=operationType,proto3" json:"operationType,omitempty"` OperationValue float64 `protobuf:"fixed64,2,opt,name=operationValue,proto3" json:"operationValue,omitempty"` // contains filtered or unexported fields }
BluetoothOperations of Bluetooth.
func (*BluetoothOperations) Descriptor
deprecated
func (*BluetoothOperations) Descriptor() ([]byte, []int)
Deprecated: Use BluetoothOperations.ProtoReflect.Descriptor instead.
func (*BluetoothOperations) GetOperationType ¶
func (x *BluetoothOperations) GetOperationType() string
func (*BluetoothOperations) GetOperationValue ¶
func (x *BluetoothOperations) GetOperationValue() float64
func (*BluetoothOperations) ProtoMessage ¶
func (*BluetoothOperations) ProtoMessage()
func (*BluetoothOperations) ProtoReflect ¶
func (x *BluetoothOperations) ProtoReflect() protoreflect.Message
func (*BluetoothOperations) Reset ¶
func (x *BluetoothOperations) Reset()
func (*BluetoothOperations) String ¶
func (x *BluetoothOperations) String() string
type BluetoothReadConverter ¶
type BluetoothReadConverter struct { StartIndex int64 `protobuf:"varint,1,opt,name=startIndex,proto3" json:"startIndex,omitempty"` EndIndex int64 `protobuf:"varint,2,opt,name=endIndex,proto3" json:"endIndex,omitempty"` ShiftLeft uint64 `protobuf:"varint,3,opt,name=shiftLeft,proto3" json:"shiftLeft,omitempty"` ShiftRight uint64 `protobuf:"varint,4,opt,name=shiftRight,proto3" json:"shiftRight,omitempty"` OrderOfOperations []*BluetoothOperations `protobuf:"bytes,5,rep,name=orderOfOperations,proto3" json:"orderOfOperations,omitempty"` // contains filtered or unexported fields }
BluetoothReadConverter of Bluetooth.
func (*BluetoothReadConverter) Descriptor
deprecated
func (*BluetoothReadConverter) Descriptor() ([]byte, []int)
Deprecated: Use BluetoothReadConverter.ProtoReflect.Descriptor instead.
func (*BluetoothReadConverter) GetEndIndex ¶
func (x *BluetoothReadConverter) GetEndIndex() int64
func (*BluetoothReadConverter) GetOrderOfOperations ¶
func (x *BluetoothReadConverter) GetOrderOfOperations() []*BluetoothOperations
func (*BluetoothReadConverter) GetShiftLeft ¶
func (x *BluetoothReadConverter) GetShiftLeft() uint64
func (*BluetoothReadConverter) GetShiftRight ¶
func (x *BluetoothReadConverter) GetShiftRight() uint64
func (*BluetoothReadConverter) GetStartIndex ¶
func (x *BluetoothReadConverter) GetStartIndex() int64
func (*BluetoothReadConverter) ProtoMessage ¶
func (*BluetoothReadConverter) ProtoMessage()
func (*BluetoothReadConverter) ProtoReflect ¶
func (x *BluetoothReadConverter) ProtoReflect() protoreflect.Message
func (*BluetoothReadConverter) Reset ¶
func (x *BluetoothReadConverter) Reset()
func (*BluetoothReadConverter) String ¶
func (x *BluetoothReadConverter) String() string
type CreateDeviceModelRequest ¶
type CreateDeviceModelRequest struct { Model *DeviceModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*CreateDeviceModelRequest) Descriptor
deprecated
func (*CreateDeviceModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceModelRequest.ProtoReflect.Descriptor instead.
func (*CreateDeviceModelRequest) GetModel ¶
func (x *CreateDeviceModelRequest) GetModel() *DeviceModel
func (*CreateDeviceModelRequest) ProtoMessage ¶
func (*CreateDeviceModelRequest) ProtoMessage()
func (*CreateDeviceModelRequest) ProtoReflect ¶
func (x *CreateDeviceModelRequest) ProtoReflect() protoreflect.Message
func (*CreateDeviceModelRequest) Reset ¶
func (x *CreateDeviceModelRequest) Reset()
func (*CreateDeviceModelRequest) String ¶
func (x *CreateDeviceModelRequest) String() string
type CreateDeviceModelResponse ¶
type CreateDeviceModelResponse struct { DeviceModelName string `protobuf:"bytes,1,opt,name=deviceModelName,proto3" json:"deviceModelName,omitempty"` // contains filtered or unexported fields }
func (*CreateDeviceModelResponse) Descriptor
deprecated
func (*CreateDeviceModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceModelResponse.ProtoReflect.Descriptor instead.
func (*CreateDeviceModelResponse) GetDeviceModelName ¶
func (x *CreateDeviceModelResponse) GetDeviceModelName() string
func (*CreateDeviceModelResponse) ProtoMessage ¶
func (*CreateDeviceModelResponse) ProtoMessage()
func (*CreateDeviceModelResponse) ProtoReflect ¶
func (x *CreateDeviceModelResponse) ProtoReflect() protoreflect.Message
func (*CreateDeviceModelResponse) Reset ¶
func (x *CreateDeviceModelResponse) Reset()
func (*CreateDeviceModelResponse) String ¶
func (x *CreateDeviceModelResponse) String() string
type CustomizedValue ¶
type CustomizedValue struct { // data is the customized value and it can be any form. Data map[string]*anypb.Any `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
CustomizedValue is the customized value for developers.
func (*CustomizedValue) Descriptor
deprecated
func (*CustomizedValue) Descriptor() ([]byte, []int)
Deprecated: Use CustomizedValue.ProtoReflect.Descriptor instead.
func (*CustomizedValue) ProtoMessage ¶
func (*CustomizedValue) ProtoMessage()
func (*CustomizedValue) ProtoReflect ¶
func (x *CustomizedValue) ProtoReflect() protoreflect.Message
func (*CustomizedValue) Reset ¶
func (x *CustomizedValue) Reset()
func (*CustomizedValue) String ¶
func (x *CustomizedValue) String() string
type Device ¶
type Device struct { // Name of the device. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Specification of the device. Spec *DeviceSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` // Status of the device. Status *DeviceStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Device is the description of a device instance.
func (*Device) Descriptor
deprecated
func (*Device) GetSpec ¶
func (x *Device) GetSpec() *DeviceSpec
func (*Device) GetStatus ¶
func (x *Device) GetStatus() *DeviceStatus
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DeviceCommand ¶
type DeviceCommand struct { // Name of the command. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Url of the command to access. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Method of the command. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // Status code list which the command can return. StatusCode []string `protobuf:"bytes,4,rep,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // Parameter list which the command carries. Parameters []string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"` // Response examples of the command. Response []byte `protobuf:"bytes,6,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
DeviceCommond is the description of a command which the device supports.
func (*DeviceCommand) Descriptor
deprecated
func (*DeviceCommand) Descriptor() ([]byte, []int)
Deprecated: Use DeviceCommand.ProtoReflect.Descriptor instead.
func (*DeviceCommand) GetMethod ¶
func (x *DeviceCommand) GetMethod() string
func (*DeviceCommand) GetName ¶
func (x *DeviceCommand) GetName() string
func (*DeviceCommand) GetParameters ¶
func (x *DeviceCommand) GetParameters() []string
func (*DeviceCommand) GetResponse ¶
func (x *DeviceCommand) GetResponse() []byte
func (*DeviceCommand) GetStatusCode ¶
func (x *DeviceCommand) GetStatusCode() []string
func (*DeviceCommand) GetUrl ¶
func (x *DeviceCommand) GetUrl() string
func (*DeviceCommand) ProtoMessage ¶
func (*DeviceCommand) ProtoMessage()
func (*DeviceCommand) ProtoReflect ¶
func (x *DeviceCommand) ProtoReflect() protoreflect.Message
func (*DeviceCommand) Reset ¶
func (x *DeviceCommand) Reset()
func (*DeviceCommand) String ¶
func (x *DeviceCommand) String() string
type DeviceManagerServiceClient ¶
type DeviceManagerServiceClient interface { // MapperRegister registers the information of the mapper to device manager // when the mapper is online. Device manager returns the list of devices and device models which // this mapper should manage. MapperRegister(ctx context.Context, in *MapperRegisterRequest, opts ...grpc.CallOption) (*MapperRegisterResponse, error) // ReportDeviceStatus reports the status of devices to device manager. // When the mapper collects some properties of a device, it can make them a map of device twins // and report it to the device manager through the interface of ReportDeviceStatus. ReportDeviceStatus(ctx context.Context, in *ReportDeviceStatusRequest, opts ...grpc.CallOption) (*ReportDeviceStatusResponse, error) }
DeviceManagerServiceClient is the client API for DeviceManagerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDeviceManageClient ¶
func NewDeviceManageClient(cc grpc.ClientConnInterface) DeviceManagerServiceClient
func NewDeviceManagerServiceClient ¶
func NewDeviceManagerServiceClient(cc grpc.ClientConnInterface) DeviceManagerServiceClient
type DeviceManagerServiceServer ¶
type DeviceManagerServiceServer interface { // MapperRegister registers the information of the mapper to device manager // when the mapper is online. Device manager returns the list of devices and device models which // this mapper should manage. MapperRegister(context.Context, *MapperRegisterRequest) (*MapperRegisterResponse, error) // ReportDeviceStatus reports the status of devices to device manager. // When the mapper collects some properties of a device, it can make them a map of device twins // and report it to the device manager through the interface of ReportDeviceStatus. ReportDeviceStatus(context.Context, *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error) }
DeviceManagerServiceServer is the server API for DeviceManagerService service.
type DeviceMapperServiceClient ¶
type DeviceMapperServiceClient interface { // RegisterDevice registers a device to the device mapper. // Device manager registers a device instance with the information of device // to the mapper through the interface of RegisterDevice. // When the mapper gets the request of register with device information, // it should add the device to the device list and connect to the real physical device via the specific protocol. RegisterDevice(ctx context.Context, in *RegisterDeviceRequest, opts ...grpc.CallOption) (*RegisterDeviceResponse, error) // RemoveDevice unregisters a device to the device mapper. // Device manager unregisters a device instance with the name of device // to the mapper through the interface of RemoveDevice. // When the mapper gets the request of unregister with device name, // it should remove the device from the device list and disconnect to the real physical device. RemoveDevice(ctx context.Context, in *RemoveDeviceRequest, opts ...grpc.CallOption) (*RemoveDeviceResponse, error) // UpdateDevice updates a device to the device mapper // Device manager updates the information of a device used by the mapper // through the interface of UpdateDevice. // The information of a device includes the meta data and the status data of a device. // When the mapper gets the request of updating with the information of a device, // it should update the device of the device list and connect to the real physical device via the updated information. UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*UpdateDeviceResponse, error) // CreateDeviceModel creates a device model to the device mapper. // Device manager sends the information of device model to the mapper // through the interface of CreateDeviceModel. // When the mapper gets the request of creating with the information of device model, // it should create a new device model to the list of device models. CreateDeviceModel(ctx context.Context, in *CreateDeviceModelRequest, opts ...grpc.CallOption) (*CreateDeviceModelResponse, error) // RemoveDeviceModel remove a device model to the device mapper. // Device manager sends the name of device model to the mapper // through the interface of RemoveDeviceModel. // When the mapper gets the request of removing with the name of device model, // it should remove the device model to the list of device models. RemoveDeviceModel(ctx context.Context, in *RemoveDeviceModelRequest, opts ...grpc.CallOption) (*RemoveDeviceModelResponse, error) // UpdateDeviceModel update a device model to the device mapper. // Device manager sends the information of device model to the mapper // through the interface of UpdateDeviceModel. // When the mapper gets the request of updating with the information of device model, // it should update the device model to the list of device models. UpdateDeviceModel(ctx context.Context, in *UpdateDeviceModelRequest, opts ...grpc.CallOption) (*UpdateDeviceModelResponse, error) // UpdateDeviceStatus update a device status to the device mapper // Device manager sends the new device status to the mapper // through the interface of UpdateDeviceStatus. // The device status represents the properties of device twins. // When the mapper gets the request of updating with the new device status, // it should update the device status of the device list and the real device status of the physical device via the updated information. UpdateDeviceStatus(ctx context.Context, in *UpdateDeviceStatusRequest, opts ...grpc.CallOption) (*UpdateDeviceStatusResponse, error) // GetDevice get the information of a device from the device mapper. // Device sends the request of querying device information with the device name to the mapper // through the interface of GetDevice. // When the mapper gets the request of querying with the device name, // it should return the device information. GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*GetDeviceResponse, error) }
DeviceMapperServiceClient is the client API for DeviceMapperService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDeviceMapperServiceClient ¶
func NewDeviceMapperServiceClient(cc grpc.ClientConnInterface) DeviceMapperServiceClient
func NewMapperClient ¶
func NewMapperClient(cc grpc.ClientConnInterface) DeviceMapperServiceClient
type DeviceMapperServiceServer ¶
type DeviceMapperServiceServer interface { // RegisterDevice registers a device to the device mapper. // Device manager registers a device instance with the information of device // to the mapper through the interface of RegisterDevice. // When the mapper gets the request of register with device information, // it should add the device to the device list and connect to the real physical device via the specific protocol. RegisterDevice(context.Context, *RegisterDeviceRequest) (*RegisterDeviceResponse, error) // RemoveDevice unregisters a device to the device mapper. // Device manager unregisters a device instance with the name of device // to the mapper through the interface of RemoveDevice. // When the mapper gets the request of unregister with device name, // it should remove the device from the device list and disconnect to the real physical device. RemoveDevice(context.Context, *RemoveDeviceRequest) (*RemoveDeviceResponse, error) // UpdateDevice updates a device to the device mapper // Device manager updates the information of a device used by the mapper // through the interface of UpdateDevice. // The information of a device includes the meta data and the status data of a device. // When the mapper gets the request of updating with the information of a device, // it should update the device of the device list and connect to the real physical device via the updated information. UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error) // CreateDeviceModel creates a device model to the device mapper. // Device manager sends the information of device model to the mapper // through the interface of CreateDeviceModel. // When the mapper gets the request of creating with the information of device model, // it should create a new device model to the list of device models. CreateDeviceModel(context.Context, *CreateDeviceModelRequest) (*CreateDeviceModelResponse, error) // RemoveDeviceModel remove a device model to the device mapper. // Device manager sends the name of device model to the mapper // through the interface of RemoveDeviceModel. // When the mapper gets the request of removing with the name of device model, // it should remove the device model to the list of device models. RemoveDeviceModel(context.Context, *RemoveDeviceModelRequest) (*RemoveDeviceModelResponse, error) // UpdateDeviceModel update a device model to the device mapper. // Device manager sends the information of device model to the mapper // through the interface of UpdateDeviceModel. // When the mapper gets the request of updating with the information of device model, // it should update the device model to the list of device models. UpdateDeviceModel(context.Context, *UpdateDeviceModelRequest) (*UpdateDeviceModelResponse, error) // UpdateDeviceStatus update a device status to the device mapper // Device manager sends the new device status to the mapper // through the interface of UpdateDeviceStatus. // The device status represents the properties of device twins. // When the mapper gets the request of updating with the new device status, // it should update the device status of the device list and the real device status of the physical device via the updated information. UpdateDeviceStatus(context.Context, *UpdateDeviceStatusRequest) (*UpdateDeviceStatusResponse, error) // GetDevice get the information of a device from the device mapper. // Device sends the request of querying device information with the device name to the mapper // through the interface of GetDevice. // When the mapper gets the request of querying with the device name, // it should return the device information. GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error) }
DeviceMapperServiceServer is the server API for DeviceMapperService service.
type DeviceModel ¶
type DeviceModel struct { // Name of a device model. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Specification of a device model. Spec *DeviceModelSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
DeviceModel specifies the information of a device model.
func (*DeviceModel) Descriptor
deprecated
func (*DeviceModel) Descriptor() ([]byte, []int)
Deprecated: Use DeviceModel.ProtoReflect.Descriptor instead.
func (*DeviceModel) GetName ¶
func (x *DeviceModel) GetName() string
func (*DeviceModel) GetSpec ¶
func (x *DeviceModel) GetSpec() *DeviceModelSpec
func (*DeviceModel) ProtoMessage ¶
func (*DeviceModel) ProtoMessage()
func (*DeviceModel) ProtoReflect ¶
func (x *DeviceModel) ProtoReflect() protoreflect.Message
func (*DeviceModel) Reset ¶
func (x *DeviceModel) Reset()
func (*DeviceModel) String ¶
func (x *DeviceModel) String() string
type DeviceModelSpec ¶
type DeviceModelSpec struct { // The properties provided by the device of this device model. Properties []*DeviceProperty `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` // The commands executed by the device of this device model. Commands []*DeviceCommand `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"` // The protocol name used by the device of this device model. Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` // contains filtered or unexported fields }
DeviceModelSpec is the specification of a device model.
func (*DeviceModelSpec) Descriptor
deprecated
func (*DeviceModelSpec) Descriptor() ([]byte, []int)
Deprecated: Use DeviceModelSpec.ProtoReflect.Descriptor instead.
func (*DeviceModelSpec) GetCommands ¶
func (x *DeviceModelSpec) GetCommands() []*DeviceCommand
func (*DeviceModelSpec) GetProperties ¶
func (x *DeviceModelSpec) GetProperties() []*DeviceProperty
func (*DeviceModelSpec) GetProtocol ¶
func (x *DeviceModelSpec) GetProtocol() string
func (*DeviceModelSpec) ProtoMessage ¶
func (*DeviceModelSpec) ProtoMessage()
func (*DeviceModelSpec) ProtoReflect ¶
func (x *DeviceModelSpec) ProtoReflect() protoreflect.Message
func (*DeviceModelSpec) Reset ¶
func (x *DeviceModelSpec) Reset()
func (*DeviceModelSpec) String ¶
func (x *DeviceModelSpec) String() string
type DeviceProperty ¶
type DeviceProperty struct { // The name of this property. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The description of this property. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The specific type of this property. Type *PropertyType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
DeviceProperty is the property of a device.
func (*DeviceProperty) Descriptor
deprecated
func (*DeviceProperty) Descriptor() ([]byte, []int)
Deprecated: Use DeviceProperty.ProtoReflect.Descriptor instead.
func (*DeviceProperty) GetDescription ¶
func (x *DeviceProperty) GetDescription() string
func (*DeviceProperty) GetName ¶
func (x *DeviceProperty) GetName() string
func (*DeviceProperty) GetType ¶
func (x *DeviceProperty) GetType() *PropertyType
func (*DeviceProperty) ProtoMessage ¶
func (*DeviceProperty) ProtoMessage()
func (*DeviceProperty) ProtoReflect ¶
func (x *DeviceProperty) ProtoReflect() protoreflect.Message
func (*DeviceProperty) Reset ¶
func (x *DeviceProperty) Reset()
func (*DeviceProperty) String ¶
func (x *DeviceProperty) String() string
type DevicePropertyVisitor ¶
type DevicePropertyVisitor struct { // the name of the property. PropertyName string `protobuf:"bytes,1,opt,name=propertyName,proto3" json:"propertyName,omitempty"` // the cycle to report data. ReportCycle int64 `protobuf:"varint,2,opt,name=reportCycle,proto3" json:"reportCycle,omitempty"` // the cycle to collect data. CollectCycle int64 `protobuf:"varint,3,opt,name=collectCycle,proto3" json:"collectCycle,omitempty"` // CustomizedValue is the customized value for developers. CustomizedValues *CustomizedValue `protobuf:"bytes,4,opt,name=customizedValues,proto3" json:"customizedValues,omitempty"` // the visitor to collect the properties of the device of OPC UA. Opcua *VisitorConfigOPCUA `protobuf:"bytes,5,opt,name=opcua,proto3" json:"opcua,omitempty"` // the visitor to collect the properties of the device of Modbus. Modbus *VisitorConfigModbus `protobuf:"bytes,6,opt,name=modbus,proto3" json:"modbus,omitempty"` // the visitor to collect the properties of the device of Bluetooth. Bluetooth *VisitorConfigBluetooth `protobuf:"bytes,7,opt,name=bluetooth,proto3" json:"bluetooth,omitempty"` // the visitor to collect the properties of the device of customized protocol. CustomizedProtocol *VisitorConfigCustomized `protobuf:"bytes,8,opt,name=customizedProtocol,proto3" json:"customizedProtocol,omitempty"` // contains filtered or unexported fields }
The visitor to collect the properties of the device.
func (*DevicePropertyVisitor) Descriptor
deprecated
func (*DevicePropertyVisitor) Descriptor() ([]byte, []int)
Deprecated: Use DevicePropertyVisitor.ProtoReflect.Descriptor instead.
func (*DevicePropertyVisitor) GetBluetooth ¶
func (x *DevicePropertyVisitor) GetBluetooth() *VisitorConfigBluetooth
func (*DevicePropertyVisitor) GetCollectCycle ¶
func (x *DevicePropertyVisitor) GetCollectCycle() int64
func (*DevicePropertyVisitor) GetCustomizedProtocol ¶
func (x *DevicePropertyVisitor) GetCustomizedProtocol() *VisitorConfigCustomized
func (*DevicePropertyVisitor) GetCustomizedValues ¶
func (x *DevicePropertyVisitor) GetCustomizedValues() *CustomizedValue
func (*DevicePropertyVisitor) GetModbus ¶
func (x *DevicePropertyVisitor) GetModbus() *VisitorConfigModbus
func (*DevicePropertyVisitor) GetOpcua ¶
func (x *DevicePropertyVisitor) GetOpcua() *VisitorConfigOPCUA
func (*DevicePropertyVisitor) GetPropertyName ¶
func (x *DevicePropertyVisitor) GetPropertyName() string
func (*DevicePropertyVisitor) GetReportCycle ¶
func (x *DevicePropertyVisitor) GetReportCycle() int64
func (*DevicePropertyVisitor) ProtoMessage ¶
func (*DevicePropertyVisitor) ProtoMessage()
func (*DevicePropertyVisitor) ProtoReflect ¶
func (x *DevicePropertyVisitor) ProtoReflect() protoreflect.Message
func (*DevicePropertyVisitor) Reset ¶
func (x *DevicePropertyVisitor) Reset()
func (*DevicePropertyVisitor) String ¶
func (x *DevicePropertyVisitor) String() string
type DeviceSpec ¶
type DeviceSpec struct { // The device model which the device references. DeviceModelReference string `protobuf:"bytes,1,opt,name=deviceModelReference,proto3" json:"deviceModelReference,omitempty"` // The specific config of the protocol to access to the device. Protocol *ProtocolConfig `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // The visitor to collect the properties of the device. PropertyVisitors []*DevicePropertyVisitor `protobuf:"bytes,3,rep,name=propertyVisitors,proto3" json:"propertyVisitors,omitempty"` // contains filtered or unexported fields }
DeviceSpec is the specification of the device.
func (*DeviceSpec) Descriptor
deprecated
func (*DeviceSpec) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSpec.ProtoReflect.Descriptor instead.
func (*DeviceSpec) GetDeviceModelReference ¶
func (x *DeviceSpec) GetDeviceModelReference() string
func (*DeviceSpec) GetPropertyVisitors ¶
func (x *DeviceSpec) GetPropertyVisitors() []*DevicePropertyVisitor
func (*DeviceSpec) GetProtocol ¶
func (x *DeviceSpec) GetProtocol() *ProtocolConfig
func (*DeviceSpec) ProtoMessage ¶
func (*DeviceSpec) ProtoMessage()
func (*DeviceSpec) ProtoReflect ¶
func (x *DeviceSpec) ProtoReflect() protoreflect.Message
func (*DeviceSpec) Reset ¶
func (x *DeviceSpec) Reset()
func (*DeviceSpec) String ¶
func (x *DeviceSpec) String() string
type DeviceStatus ¶
type DeviceStatus struct { // the device twins of the device. Twins []*Twin `protobuf:"bytes,1,rep,name=twins,proto3" json:"twins,omitempty"` // the state of the device like Online or Offline. State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
DeviceStatus is the status of the device.
func (*DeviceStatus) Descriptor
deprecated
func (*DeviceStatus) Descriptor() ([]byte, []int)
Deprecated: Use DeviceStatus.ProtoReflect.Descriptor instead.
func (*DeviceStatus) GetState ¶
func (x *DeviceStatus) GetState() string
func (*DeviceStatus) GetTwins ¶
func (x *DeviceStatus) GetTwins() []*Twin
func (*DeviceStatus) ProtoMessage ¶
func (*DeviceStatus) ProtoMessage()
func (*DeviceStatus) ProtoReflect ¶
func (x *DeviceStatus) ProtoReflect() protoreflect.Message
func (*DeviceStatus) Reset ¶
func (x *DeviceStatus) Reset()
func (*DeviceStatus) String ¶
func (x *DeviceStatus) String() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceRequest) Descriptor
deprecated
func (*GetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceRequest) GetDeviceName ¶
func (x *GetDeviceRequest) GetDeviceName() string
func (*GetDeviceRequest) ProtoMessage ¶
func (*GetDeviceRequest) ProtoMessage()
func (*GetDeviceRequest) ProtoReflect ¶
func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceRequest) Reset ¶
func (x *GetDeviceRequest) Reset()
func (*GetDeviceRequest) String ¶
func (x *GetDeviceRequest) String() string
type GetDeviceResponse ¶
type GetDeviceResponse struct { Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceResponse) Descriptor
deprecated
func (*GetDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceResponse.ProtoReflect.Descriptor instead.
func (*GetDeviceResponse) GetDevice ¶
func (x *GetDeviceResponse) GetDevice() *Device
func (*GetDeviceResponse) ProtoMessage ¶
func (*GetDeviceResponse) ProtoMessage()
func (*GetDeviceResponse) ProtoReflect ¶
func (x *GetDeviceResponse) ProtoReflect() protoreflect.Message
func (*GetDeviceResponse) Reset ¶
func (x *GetDeviceResponse) Reset()
func (*GetDeviceResponse) String ¶
func (x *GetDeviceResponse) String() string
type MapperInfo ¶
type MapperInfo struct { // name of the mapper. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // version of the mapper. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // api version of the mapper. ApiVersion string `protobuf:"bytes,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // the protocol of the mapper. Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // the address of the mapper. it is a unix domain socket of grpc. Address []byte `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` // the state of the mapper. State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
MapperInfo is the information of mapper.
func (*MapperInfo) Descriptor
deprecated
func (*MapperInfo) Descriptor() ([]byte, []int)
Deprecated: Use MapperInfo.ProtoReflect.Descriptor instead.
func (*MapperInfo) GetAddress ¶
func (x *MapperInfo) GetAddress() []byte
func (*MapperInfo) GetApiVersion ¶
func (x *MapperInfo) GetApiVersion() string
func (*MapperInfo) GetName ¶
func (x *MapperInfo) GetName() string
func (*MapperInfo) GetProtocol ¶
func (x *MapperInfo) GetProtocol() string
func (*MapperInfo) GetState ¶
func (x *MapperInfo) GetState() string
func (*MapperInfo) GetVersion ¶
func (x *MapperInfo) GetVersion() string
func (*MapperInfo) ProtoMessage ¶
func (*MapperInfo) ProtoMessage()
func (*MapperInfo) ProtoReflect ¶
func (x *MapperInfo) ProtoReflect() protoreflect.Message
func (*MapperInfo) Reset ¶
func (x *MapperInfo) Reset()
func (*MapperInfo) String ¶
func (x *MapperInfo) String() string
type MapperRegisterRequest ¶
type MapperRegisterRequest struct { // The flag to show how device manager returns. // True means device manager should return the device list in the response. // False means device manager should just return nothing. WithData bool `protobuf:"varint,1,opt,name=withData,proto3" json:"withData,omitempty"` // Mapper information to be registered to the device manager. Mapper *MapperInfo `protobuf:"bytes,2,opt,name=mapper,proto3" json:"mapper,omitempty"` // contains filtered or unexported fields }
func (*MapperRegisterRequest) Descriptor
deprecated
func (*MapperRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use MapperRegisterRequest.ProtoReflect.Descriptor instead.
func (*MapperRegisterRequest) GetMapper ¶
func (x *MapperRegisterRequest) GetMapper() *MapperInfo
func (*MapperRegisterRequest) GetWithData ¶
func (x *MapperRegisterRequest) GetWithData() bool
func (*MapperRegisterRequest) ProtoMessage ¶
func (*MapperRegisterRequest) ProtoMessage()
func (*MapperRegisterRequest) ProtoReflect ¶
func (x *MapperRegisterRequest) ProtoReflect() protoreflect.Message
func (*MapperRegisterRequest) Reset ¶
func (x *MapperRegisterRequest) Reset()
func (*MapperRegisterRequest) String ¶
func (x *MapperRegisterRequest) String() string
type MapperRegisterResponse ¶
type MapperRegisterResponse struct { // List of device models which the mapper maintains. ModelList []*DeviceModel `protobuf:"bytes,1,rep,name=modelList,proto3" json:"modelList,omitempty"` // List of devices which the mapper maintains. DeviceList []*Device `protobuf:"bytes,2,rep,name=deviceList,proto3" json:"deviceList,omitempty"` // contains filtered or unexported fields }
func (*MapperRegisterResponse) Descriptor
deprecated
func (*MapperRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use MapperRegisterResponse.ProtoReflect.Descriptor instead.
func (*MapperRegisterResponse) GetDeviceList ¶
func (x *MapperRegisterResponse) GetDeviceList() []*Device
func (*MapperRegisterResponse) GetModelList ¶
func (x *MapperRegisterResponse) GetModelList() []*DeviceModel
func (*MapperRegisterResponse) ProtoMessage ¶
func (*MapperRegisterResponse) ProtoMessage()
func (*MapperRegisterResponse) ProtoReflect ¶
func (x *MapperRegisterResponse) ProtoReflect() protoreflect.Message
func (*MapperRegisterResponse) Reset ¶
func (x *MapperRegisterResponse) Reset()
func (*MapperRegisterResponse) String ¶
func (x *MapperRegisterResponse) String() string
type PropertyType ¶
type PropertyType struct { // Property of Type Int64. Int *PropertyTypeInt64 `protobuf:"bytes,1,opt,name=int,proto3" json:"int,omitempty"` // Property of Type String. String_ *PropertyTypeString `protobuf:"bytes,2,opt,name=string,proto3" json:"string,omitempty"` // Property of Type Double. Double *PropertyTypeDouble `protobuf:"bytes,3,opt,name=double,proto3" json:"double,omitempty"` // Property of Type Float. Float *PropertyTypeFloat `protobuf:"bytes,4,opt,name=float,proto3" json:"float,omitempty"` // Property of Type Boolean. Boolean *PropertyTypeBoolean `protobuf:"bytes,5,opt,name=boolean,proto3" json:"boolean,omitempty"` // Property of Type Bytes. Bytes *PropertyTypeBytes `protobuf:"bytes,6,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
PropertyType is the type of a property.
func (*PropertyType) Descriptor
deprecated
func (*PropertyType) Descriptor() ([]byte, []int)
Deprecated: Use PropertyType.ProtoReflect.Descriptor instead.
func (*PropertyType) GetBoolean ¶
func (x *PropertyType) GetBoolean() *PropertyTypeBoolean
func (*PropertyType) GetBytes ¶
func (x *PropertyType) GetBytes() *PropertyTypeBytes
func (*PropertyType) GetDouble ¶
func (x *PropertyType) GetDouble() *PropertyTypeDouble
func (*PropertyType) GetFloat ¶
func (x *PropertyType) GetFloat() *PropertyTypeFloat
func (*PropertyType) GetInt ¶
func (x *PropertyType) GetInt() *PropertyTypeInt64
func (*PropertyType) GetString_ ¶
func (x *PropertyType) GetString_() *PropertyTypeString
func (*PropertyType) ProtoMessage ¶
func (*PropertyType) ProtoMessage()
func (*PropertyType) ProtoReflect ¶
func (x *PropertyType) ProtoReflect() protoreflect.Message
func (*PropertyType) Reset ¶
func (x *PropertyType) Reset()
func (*PropertyType) String ¶
func (x *PropertyType) String() string
type PropertyTypeBoolean ¶
type PropertyTypeBoolean struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // The default value of this property. DefaultValue bool `protobuf:"varint,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // contains filtered or unexported fields }
The Specification of property of Boolean.
func (*PropertyTypeBoolean) Descriptor
deprecated
func (*PropertyTypeBoolean) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeBoolean.ProtoReflect.Descriptor instead.
func (*PropertyTypeBoolean) GetAccessMode ¶
func (x *PropertyTypeBoolean) GetAccessMode() string
func (*PropertyTypeBoolean) GetDefaultValue ¶
func (x *PropertyTypeBoolean) GetDefaultValue() bool
func (*PropertyTypeBoolean) ProtoMessage ¶
func (*PropertyTypeBoolean) ProtoMessage()
func (*PropertyTypeBoolean) ProtoReflect ¶
func (x *PropertyTypeBoolean) ProtoReflect() protoreflect.Message
func (*PropertyTypeBoolean) Reset ¶
func (x *PropertyTypeBoolean) Reset()
func (*PropertyTypeBoolean) String ¶
func (x *PropertyTypeBoolean) String() string
type PropertyTypeBytes ¶
type PropertyTypeBytes struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // contains filtered or unexported fields }
The Specification of property of Bytes.
func (*PropertyTypeBytes) Descriptor
deprecated
func (*PropertyTypeBytes) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeBytes.ProtoReflect.Descriptor instead.
func (*PropertyTypeBytes) GetAccessMode ¶
func (x *PropertyTypeBytes) GetAccessMode() string
func (*PropertyTypeBytes) ProtoMessage ¶
func (*PropertyTypeBytes) ProtoMessage()
func (*PropertyTypeBytes) ProtoReflect ¶
func (x *PropertyTypeBytes) ProtoReflect() protoreflect.Message
func (*PropertyTypeBytes) Reset ¶
func (x *PropertyTypeBytes) Reset()
func (*PropertyTypeBytes) String ¶
func (x *PropertyTypeBytes) String() string
type PropertyTypeDouble ¶
type PropertyTypeDouble struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // The default value of this property. DefaultValue float64 `protobuf:"fixed64,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // The minimum value of this property. Minimum float64 `protobuf:"fixed64,3,opt,name=minimum,proto3" json:"minimum,omitempty"` // The maximum value of this property. Maximum float64 `protobuf:"fixed64,4,opt,name=maximum,proto3" json:"maximum,omitempty"` // The unit of this property. Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` // contains filtered or unexported fields }
The Specification of property of Double.
func (*PropertyTypeDouble) Descriptor
deprecated
func (*PropertyTypeDouble) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeDouble.ProtoReflect.Descriptor instead.
func (*PropertyTypeDouble) GetAccessMode ¶
func (x *PropertyTypeDouble) GetAccessMode() string
func (*PropertyTypeDouble) GetDefaultValue ¶
func (x *PropertyTypeDouble) GetDefaultValue() float64
func (*PropertyTypeDouble) GetMaximum ¶
func (x *PropertyTypeDouble) GetMaximum() float64
func (*PropertyTypeDouble) GetMinimum ¶
func (x *PropertyTypeDouble) GetMinimum() float64
func (*PropertyTypeDouble) GetUnit ¶
func (x *PropertyTypeDouble) GetUnit() string
func (*PropertyTypeDouble) ProtoMessage ¶
func (*PropertyTypeDouble) ProtoMessage()
func (*PropertyTypeDouble) ProtoReflect ¶
func (x *PropertyTypeDouble) ProtoReflect() protoreflect.Message
func (*PropertyTypeDouble) Reset ¶
func (x *PropertyTypeDouble) Reset()
func (*PropertyTypeDouble) String ¶
func (x *PropertyTypeDouble) String() string
type PropertyTypeFloat ¶
type PropertyTypeFloat struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // The default value of this property. DefaultValue float32 `protobuf:"fixed32,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // The minimum value of this property. Minimum float32 `protobuf:"fixed32,3,opt,name=minimum,proto3" json:"minimum,omitempty"` // The maximum value of this property. Maximum float32 `protobuf:"fixed32,4,opt,name=maximum,proto3" json:"maximum,omitempty"` // The unit of this property. Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` // contains filtered or unexported fields }
The Specification of property of Float.
func (*PropertyTypeFloat) Descriptor
deprecated
func (*PropertyTypeFloat) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeFloat.ProtoReflect.Descriptor instead.
func (*PropertyTypeFloat) GetAccessMode ¶
func (x *PropertyTypeFloat) GetAccessMode() string
func (*PropertyTypeFloat) GetDefaultValue ¶
func (x *PropertyTypeFloat) GetDefaultValue() float32
func (*PropertyTypeFloat) GetMaximum ¶
func (x *PropertyTypeFloat) GetMaximum() float32
func (*PropertyTypeFloat) GetMinimum ¶
func (x *PropertyTypeFloat) GetMinimum() float32
func (*PropertyTypeFloat) GetUnit ¶
func (x *PropertyTypeFloat) GetUnit() string
func (*PropertyTypeFloat) ProtoMessage ¶
func (*PropertyTypeFloat) ProtoMessage()
func (*PropertyTypeFloat) ProtoReflect ¶
func (x *PropertyTypeFloat) ProtoReflect() protoreflect.Message
func (*PropertyTypeFloat) Reset ¶
func (x *PropertyTypeFloat) Reset()
func (*PropertyTypeFloat) String ¶
func (x *PropertyTypeFloat) String() string
type PropertyTypeInt64 ¶
type PropertyTypeInt64 struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // The default value of this property. DefaultValue int64 `protobuf:"varint,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // The minimum value of this property. Minimum int64 `protobuf:"varint,3,opt,name=minimum,proto3" json:"minimum,omitempty"` // The maximum value of this property. Maximum int64 `protobuf:"varint,4,opt,name=maximum,proto3" json:"maximum,omitempty"` // The unit of this property. Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` // contains filtered or unexported fields }
The Specification of property of Int64.
func (*PropertyTypeInt64) Descriptor
deprecated
func (*PropertyTypeInt64) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeInt64.ProtoReflect.Descriptor instead.
func (*PropertyTypeInt64) GetAccessMode ¶
func (x *PropertyTypeInt64) GetAccessMode() string
func (*PropertyTypeInt64) GetDefaultValue ¶
func (x *PropertyTypeInt64) GetDefaultValue() int64
func (*PropertyTypeInt64) GetMaximum ¶
func (x *PropertyTypeInt64) GetMaximum() int64
func (*PropertyTypeInt64) GetMinimum ¶
func (x *PropertyTypeInt64) GetMinimum() int64
func (*PropertyTypeInt64) GetUnit ¶
func (x *PropertyTypeInt64) GetUnit() string
func (*PropertyTypeInt64) ProtoMessage ¶
func (*PropertyTypeInt64) ProtoMessage()
func (*PropertyTypeInt64) ProtoReflect ¶
func (x *PropertyTypeInt64) ProtoReflect() protoreflect.Message
func (*PropertyTypeInt64) Reset ¶
func (x *PropertyTypeInt64) Reset()
func (*PropertyTypeInt64) String ¶
func (x *PropertyTypeInt64) String() string
type PropertyTypeString ¶
type PropertyTypeString struct { // The access mode of this property, ReadOnly or ReadWrite. AccessMode string `protobuf:"bytes,1,opt,name=accessMode,proto3" json:"accessMode,omitempty"` // The default value of this property. DefaultValue string `protobuf:"bytes,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // contains filtered or unexported fields }
The Specification of property of String.
func (*PropertyTypeString) Descriptor
deprecated
func (*PropertyTypeString) Descriptor() ([]byte, []int)
Deprecated: Use PropertyTypeString.ProtoReflect.Descriptor instead.
func (*PropertyTypeString) GetAccessMode ¶
func (x *PropertyTypeString) GetAccessMode() string
func (*PropertyTypeString) GetDefaultValue ¶
func (x *PropertyTypeString) GetDefaultValue() string
func (*PropertyTypeString) ProtoMessage ¶
func (*PropertyTypeString) ProtoMessage()
func (*PropertyTypeString) ProtoReflect ¶
func (x *PropertyTypeString) ProtoReflect() protoreflect.Message
func (*PropertyTypeString) Reset ¶
func (x *PropertyTypeString) Reset()
func (*PropertyTypeString) String ¶
func (x *PropertyTypeString) String() string
type ProtocolConfig ¶
type ProtocolConfig struct { // The specific config of the protocol of OpcUA. Opcua *ProtocolConfigOpcUA `protobuf:"bytes,1,opt,name=opcua,proto3" json:"opcua,omitempty"` // The specific config of the protocol of Modbus. Modbus *ProtocolConfigModbus `protobuf:"bytes,2,opt,name=modbus,proto3" json:"modbus,omitempty"` // The specific config of the protocol of Bluetooth. Bluetooth *ProtocolConfigBluetooth `protobuf:"bytes,3,opt,name=bluetooth,proto3" json:"bluetooth,omitempty"` // The common config for device. Common *ProtocolConfigCommon `protobuf:"bytes,4,opt,name=common,proto3" json:"common,omitempty"` // The specific config of the customized protocol. CustomizedProtocol *ProtocolConfigCustomized `protobuf:"bytes,5,opt,name=customizedProtocol,proto3" json:"customizedProtocol,omitempty"` // contains filtered or unexported fields }
ProtocolConfig is the specific config of the protocol to access to the device.
func (*ProtocolConfig) Descriptor
deprecated
func (*ProtocolConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfig.ProtoReflect.Descriptor instead.
func (*ProtocolConfig) GetBluetooth ¶
func (x *ProtocolConfig) GetBluetooth() *ProtocolConfigBluetooth
func (*ProtocolConfig) GetCommon ¶
func (x *ProtocolConfig) GetCommon() *ProtocolConfigCommon
func (*ProtocolConfig) GetCustomizedProtocol ¶
func (x *ProtocolConfig) GetCustomizedProtocol() *ProtocolConfigCustomized
func (*ProtocolConfig) GetModbus ¶
func (x *ProtocolConfig) GetModbus() *ProtocolConfigModbus
func (*ProtocolConfig) GetOpcua ¶
func (x *ProtocolConfig) GetOpcua() *ProtocolConfigOpcUA
func (*ProtocolConfig) ProtoMessage ¶
func (*ProtocolConfig) ProtoMessage()
func (*ProtocolConfig) ProtoReflect ¶
func (x *ProtocolConfig) ProtoReflect() protoreflect.Message
func (*ProtocolConfig) Reset ¶
func (x *ProtocolConfig) Reset()
func (*ProtocolConfig) String ¶
func (x *ProtocolConfig) String() string
type ProtocolConfigBluetooth ¶
type ProtocolConfigBluetooth struct { // The mac address of the bluetooth device. MacAddress string `protobuf:"bytes,1,opt,name=macAddress,proto3" json:"macAddress,omitempty"` // contains filtered or unexported fields }
The specific config of the protocol of Bluetooth.
func (*ProtocolConfigBluetooth) Descriptor
deprecated
func (*ProtocolConfigBluetooth) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigBluetooth.ProtoReflect.Descriptor instead.
func (*ProtocolConfigBluetooth) GetMacAddress ¶
func (x *ProtocolConfigBluetooth) GetMacAddress() string
func (*ProtocolConfigBluetooth) ProtoMessage ¶
func (*ProtocolConfigBluetooth) ProtoMessage()
func (*ProtocolConfigBluetooth) ProtoReflect ¶
func (x *ProtocolConfigBluetooth) ProtoReflect() protoreflect.Message
func (*ProtocolConfigBluetooth) Reset ¶
func (x *ProtocolConfigBluetooth) Reset()
func (*ProtocolConfigBluetooth) String ¶
func (x *ProtocolConfigBluetooth) String() string
type ProtocolConfigCOM ¶
type ProtocolConfigCOM struct { // serialPort is the port of serial. SerialPort string `protobuf:"bytes,1,opt,name=serialPort,proto3" json:"serialPort,omitempty"` // baudRate is the rate of baud. BaudRate int64 `protobuf:"varint,2,opt,name=baudRate,proto3" json:"baudRate,omitempty"` // dataBits is the bits of data. DataBits int64 `protobuf:"varint,3,opt,name=dataBits,proto3" json:"dataBits,omitempty"` // parity is the bit of parity. Parity string `protobuf:"bytes,4,opt,name=parity,proto3" json:"parity,omitempty"` // stopBits is the bit of stop. StopBits int64 `protobuf:"varint,5,opt,name=stopBits,proto3" json:"stopBits,omitempty"` // contains filtered or unexported fields }
ProtocolConfigCOM is the config of com.
func (*ProtocolConfigCOM) Descriptor
deprecated
func (*ProtocolConfigCOM) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigCOM.ProtoReflect.Descriptor instead.
func (*ProtocolConfigCOM) GetBaudRate ¶
func (x *ProtocolConfigCOM) GetBaudRate() int64
func (*ProtocolConfigCOM) GetDataBits ¶
func (x *ProtocolConfigCOM) GetDataBits() int64
func (*ProtocolConfigCOM) GetParity ¶
func (x *ProtocolConfigCOM) GetParity() string
func (*ProtocolConfigCOM) GetSerialPort ¶
func (x *ProtocolConfigCOM) GetSerialPort() string
func (*ProtocolConfigCOM) GetStopBits ¶
func (x *ProtocolConfigCOM) GetStopBits() int64
func (*ProtocolConfigCOM) ProtoMessage ¶
func (*ProtocolConfigCOM) ProtoMessage()
func (*ProtocolConfigCOM) ProtoReflect ¶
func (x *ProtocolConfigCOM) ProtoReflect() protoreflect.Message
func (*ProtocolConfigCOM) Reset ¶
func (x *ProtocolConfigCOM) Reset()
func (*ProtocolConfigCOM) String ¶
func (x *ProtocolConfigCOM) String() string
type ProtocolConfigCommon ¶
type ProtocolConfigCommon struct { // ProtocolConfigCOM is the config of com. Com *ProtocolConfigCOM `protobuf:"bytes,1,opt,name=com,proto3" json:"com,omitempty"` // ProtocolConfigTCP is the config of tcp. Tcp *ProtocolConfigTCP `protobuf:"bytes,2,opt,name=tcp,proto3" json:"tcp,omitempty"` // commType is the type of the communication. CommType string `protobuf:"bytes,3,opt,name=commType,proto3" json:"commType,omitempty"` // reconnTimeout is the time out of reconnection. ReconnTimeout int64 `protobuf:"varint,4,opt,name=reconnTimeout,proto3" json:"reconnTimeout,omitempty"` // reconnRetryTimes is the retry times of reconnection. ReconnRetryTimes int64 `protobuf:"varint,5,opt,name=reconnRetryTimes,proto3" json:"reconnRetryTimes,omitempty"` // collectTimeout is the time out of collection. CollectTimeout int64 `protobuf:"varint,6,opt,name=collectTimeout,proto3" json:"collectTimeout,omitempty"` // collectRetryTimes is the retry times of collection. CollectRetryTimes int64 `protobuf:"varint,7,opt,name=collectRetryTimes,proto3" json:"collectRetryTimes,omitempty"` // collectType is the type of collection. CollectType string `protobuf:"bytes,8,opt,name=collectType,proto3" json:"collectType,omitempty"` // CustomizedValue is the customized value for developers. CustomizedValues *CustomizedValue `protobuf:"bytes,9,opt,name=customizedValues,proto3" json:"customizedValues,omitempty"` // contains filtered or unexported fields }
The common config for device.
func (*ProtocolConfigCommon) Descriptor
deprecated
func (*ProtocolConfigCommon) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigCommon.ProtoReflect.Descriptor instead.
func (*ProtocolConfigCommon) GetCollectRetryTimes ¶
func (x *ProtocolConfigCommon) GetCollectRetryTimes() int64
func (*ProtocolConfigCommon) GetCollectTimeout ¶
func (x *ProtocolConfigCommon) GetCollectTimeout() int64
func (*ProtocolConfigCommon) GetCollectType ¶
func (x *ProtocolConfigCommon) GetCollectType() string
func (*ProtocolConfigCommon) GetCom ¶
func (x *ProtocolConfigCommon) GetCom() *ProtocolConfigCOM
func (*ProtocolConfigCommon) GetCommType ¶
func (x *ProtocolConfigCommon) GetCommType() string
func (*ProtocolConfigCommon) GetCustomizedValues ¶
func (x *ProtocolConfigCommon) GetCustomizedValues() *CustomizedValue
func (*ProtocolConfigCommon) GetReconnRetryTimes ¶
func (x *ProtocolConfigCommon) GetReconnRetryTimes() int64
func (*ProtocolConfigCommon) GetReconnTimeout ¶
func (x *ProtocolConfigCommon) GetReconnTimeout() int64
func (*ProtocolConfigCommon) GetTcp ¶
func (x *ProtocolConfigCommon) GetTcp() *ProtocolConfigTCP
func (*ProtocolConfigCommon) ProtoMessage ¶
func (*ProtocolConfigCommon) ProtoMessage()
func (*ProtocolConfigCommon) ProtoReflect ¶
func (x *ProtocolConfigCommon) ProtoReflect() protoreflect.Message
func (*ProtocolConfigCommon) Reset ¶
func (x *ProtocolConfigCommon) Reset()
func (*ProtocolConfigCommon) String ¶
func (x *ProtocolConfigCommon) String() string
type ProtocolConfigCustomized ¶
type ProtocolConfigCustomized struct { // the name of the customized protocol. ProtocolName string `protobuf:"bytes,1,opt,name=protocolName,proto3" json:"protocolName,omitempty"` // the config data of the customized protocol. ConfigData *CustomizedValue `protobuf:"bytes,2,opt,name=configData,proto3" json:"configData,omitempty"` // contains filtered or unexported fields }
The specific config of the customized protocol.
func (*ProtocolConfigCustomized) Descriptor
deprecated
func (*ProtocolConfigCustomized) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigCustomized.ProtoReflect.Descriptor instead.
func (*ProtocolConfigCustomized) GetConfigData ¶
func (x *ProtocolConfigCustomized) GetConfigData() *CustomizedValue
func (*ProtocolConfigCustomized) GetProtocolName ¶
func (x *ProtocolConfigCustomized) GetProtocolName() string
func (*ProtocolConfigCustomized) ProtoMessage ¶
func (*ProtocolConfigCustomized) ProtoMessage()
func (*ProtocolConfigCustomized) ProtoReflect ¶
func (x *ProtocolConfigCustomized) ProtoReflect() protoreflect.Message
func (*ProtocolConfigCustomized) Reset ¶
func (x *ProtocolConfigCustomized) Reset()
func (*ProtocolConfigCustomized) String ¶
func (x *ProtocolConfigCustomized) String() string
type ProtocolConfigModbus ¶
type ProtocolConfigModbus struct { // The ID of the slave. SlaveID int64 `protobuf:"varint,1,opt,name=slaveID,proto3" json:"slaveID,omitempty"` // contains filtered or unexported fields }
ProtocolConfigModbus is the config of the protocol of Modbus.
func (*ProtocolConfigModbus) Descriptor
deprecated
func (*ProtocolConfigModbus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigModbus.ProtoReflect.Descriptor instead.
func (*ProtocolConfigModbus) GetSlaveID ¶
func (x *ProtocolConfigModbus) GetSlaveID() int64
func (*ProtocolConfigModbus) ProtoMessage ¶
func (*ProtocolConfigModbus) ProtoMessage()
func (*ProtocolConfigModbus) ProtoReflect ¶
func (x *ProtocolConfigModbus) ProtoReflect() protoreflect.Message
func (*ProtocolConfigModbus) Reset ¶
func (x *ProtocolConfigModbus) Reset()
func (*ProtocolConfigModbus) String ¶
func (x *ProtocolConfigModbus) String() string
type ProtocolConfigOpcUA ¶
type ProtocolConfigOpcUA struct { // URL of the device. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // The user name to access to the device. UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` // The file path to store the password to access to the device like /ca/paas. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // The security policy of the device like Basic256Sha256. SecurityPolicy string `protobuf:"bytes,4,opt,name=securityPolicy,proto3" json:"securityPolicy,omitempty"` // The security mode of the device like Sign. SecurityMode string `protobuf:"bytes,5,opt,name=securityMode,proto3" json:"securityMode,omitempty"` // The file path to store the certificate to access to the device like /ca/clientcert.pem. Certificate string `protobuf:"bytes,6,opt,name=certificate,proto3" json:"certificate,omitempty"` // The file path to store the private key to access to the device like /ca/clientkey.pem. PrivateKey string `protobuf:"bytes,7,opt,name=privateKey,proto3" json:"privateKey,omitempty"` Timeout int64 `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
ProtocolConfigOpcUA is the config of the protocol of OpcUA.
func (*ProtocolConfigOpcUA) Descriptor
deprecated
func (*ProtocolConfigOpcUA) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigOpcUA.ProtoReflect.Descriptor instead.
func (*ProtocolConfigOpcUA) GetCertificate ¶
func (x *ProtocolConfigOpcUA) GetCertificate() string
func (*ProtocolConfigOpcUA) GetPassword ¶
func (x *ProtocolConfigOpcUA) GetPassword() string
func (*ProtocolConfigOpcUA) GetPrivateKey ¶
func (x *ProtocolConfigOpcUA) GetPrivateKey() string
func (*ProtocolConfigOpcUA) GetSecurityMode ¶
func (x *ProtocolConfigOpcUA) GetSecurityMode() string
func (*ProtocolConfigOpcUA) GetSecurityPolicy ¶
func (x *ProtocolConfigOpcUA) GetSecurityPolicy() string
func (*ProtocolConfigOpcUA) GetTimeout ¶
func (x *ProtocolConfigOpcUA) GetTimeout() int64
func (*ProtocolConfigOpcUA) GetUrl ¶
func (x *ProtocolConfigOpcUA) GetUrl() string
func (*ProtocolConfigOpcUA) GetUserName ¶
func (x *ProtocolConfigOpcUA) GetUserName() string
func (*ProtocolConfigOpcUA) ProtoMessage ¶
func (*ProtocolConfigOpcUA) ProtoMessage()
func (*ProtocolConfigOpcUA) ProtoReflect ¶
func (x *ProtocolConfigOpcUA) ProtoReflect() protoreflect.Message
func (*ProtocolConfigOpcUA) Reset ¶
func (x *ProtocolConfigOpcUA) Reset()
func (*ProtocolConfigOpcUA) String ¶
func (x *ProtocolConfigOpcUA) String() string
type ProtocolConfigTCP ¶
type ProtocolConfigTCP struct { // IP of tcp for the device. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // port of tcp for the device. Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
ProtocolConfigTCP is the config of tcp.
func (*ProtocolConfigTCP) Descriptor
deprecated
func (*ProtocolConfigTCP) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolConfigTCP.ProtoReflect.Descriptor instead.
func (*ProtocolConfigTCP) GetIp ¶
func (x *ProtocolConfigTCP) GetIp() string
func (*ProtocolConfigTCP) GetPort ¶
func (x *ProtocolConfigTCP) GetPort() int64
func (*ProtocolConfigTCP) ProtoMessage ¶
func (*ProtocolConfigTCP) ProtoMessage()
func (*ProtocolConfigTCP) ProtoReflect ¶
func (x *ProtocolConfigTCP) ProtoReflect() protoreflect.Message
func (*ProtocolConfigTCP) Reset ¶
func (x *ProtocolConfigTCP) Reset()
func (*ProtocolConfigTCP) String ¶
func (x *ProtocolConfigTCP) String() string
type RegisterDeviceRequest ¶
type RegisterDeviceRequest struct { Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*RegisterDeviceRequest) Descriptor
deprecated
func (*RegisterDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeviceRequest.ProtoReflect.Descriptor instead.
func (*RegisterDeviceRequest) GetDevice ¶
func (x *RegisterDeviceRequest) GetDevice() *Device
func (*RegisterDeviceRequest) ProtoMessage ¶
func (*RegisterDeviceRequest) ProtoMessage()
func (*RegisterDeviceRequest) ProtoReflect ¶
func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message
func (*RegisterDeviceRequest) Reset ¶
func (x *RegisterDeviceRequest) Reset()
func (*RegisterDeviceRequest) String ¶
func (x *RegisterDeviceRequest) String() string
type RegisterDeviceResponse ¶
type RegisterDeviceResponse struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` // contains filtered or unexported fields }
func (*RegisterDeviceResponse) Descriptor
deprecated
func (*RegisterDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeviceResponse.ProtoReflect.Descriptor instead.
func (*RegisterDeviceResponse) GetDeviceName ¶
func (x *RegisterDeviceResponse) GetDeviceName() string
func (*RegisterDeviceResponse) ProtoMessage ¶
func (*RegisterDeviceResponse) ProtoMessage()
func (*RegisterDeviceResponse) ProtoReflect ¶
func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message
func (*RegisterDeviceResponse) Reset ¶
func (x *RegisterDeviceResponse) Reset()
func (*RegisterDeviceResponse) String ¶
func (x *RegisterDeviceResponse) String() string
type RemoveDeviceModelRequest ¶
type RemoveDeviceModelRequest struct { ModelName string `protobuf:"bytes,1,opt,name=modelName,proto3" json:"modelName,omitempty"` // contains filtered or unexported fields }
func (*RemoveDeviceModelRequest) Descriptor
deprecated
func (*RemoveDeviceModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDeviceModelRequest.ProtoReflect.Descriptor instead.
func (*RemoveDeviceModelRequest) GetModelName ¶
func (x *RemoveDeviceModelRequest) GetModelName() string
func (*RemoveDeviceModelRequest) ProtoMessage ¶
func (*RemoveDeviceModelRequest) ProtoMessage()
func (*RemoveDeviceModelRequest) ProtoReflect ¶
func (x *RemoveDeviceModelRequest) ProtoReflect() protoreflect.Message
func (*RemoveDeviceModelRequest) Reset ¶
func (x *RemoveDeviceModelRequest) Reset()
func (*RemoveDeviceModelRequest) String ¶
func (x *RemoveDeviceModelRequest) String() string
type RemoveDeviceModelResponse ¶
type RemoveDeviceModelResponse struct {
// contains filtered or unexported fields
}
func (*RemoveDeviceModelResponse) Descriptor
deprecated
func (*RemoveDeviceModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDeviceModelResponse.ProtoReflect.Descriptor instead.
func (*RemoveDeviceModelResponse) ProtoMessage ¶
func (*RemoveDeviceModelResponse) ProtoMessage()
func (*RemoveDeviceModelResponse) ProtoReflect ¶
func (x *RemoveDeviceModelResponse) ProtoReflect() protoreflect.Message
func (*RemoveDeviceModelResponse) Reset ¶
func (x *RemoveDeviceModelResponse) Reset()
func (*RemoveDeviceModelResponse) String ¶
func (x *RemoveDeviceModelResponse) String() string
type RemoveDeviceRequest ¶
type RemoveDeviceRequest struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` // contains filtered or unexported fields }
func (*RemoveDeviceRequest) Descriptor
deprecated
func (*RemoveDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDeviceRequest.ProtoReflect.Descriptor instead.
func (*RemoveDeviceRequest) GetDeviceName ¶
func (x *RemoveDeviceRequest) GetDeviceName() string
func (*RemoveDeviceRequest) ProtoMessage ¶
func (*RemoveDeviceRequest) ProtoMessage()
func (*RemoveDeviceRequest) ProtoReflect ¶
func (x *RemoveDeviceRequest) ProtoReflect() protoreflect.Message
func (*RemoveDeviceRequest) Reset ¶
func (x *RemoveDeviceRequest) Reset()
func (*RemoveDeviceRequest) String ¶
func (x *RemoveDeviceRequest) String() string
type RemoveDeviceResponse ¶
type RemoveDeviceResponse struct {
// contains filtered or unexported fields
}
func (*RemoveDeviceResponse) Descriptor
deprecated
func (*RemoveDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDeviceResponse.ProtoReflect.Descriptor instead.
func (*RemoveDeviceResponse) ProtoMessage ¶
func (*RemoveDeviceResponse) ProtoMessage()
func (*RemoveDeviceResponse) ProtoReflect ¶
func (x *RemoveDeviceResponse) ProtoReflect() protoreflect.Message
func (*RemoveDeviceResponse) Reset ¶
func (x *RemoveDeviceResponse) Reset()
func (*RemoveDeviceResponse) String ¶
func (x *RemoveDeviceResponse) String() string
type ReportDeviceStatusRequest ¶
type ReportDeviceStatusRequest struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` ReportedDevice *DeviceStatus `protobuf:"bytes,2,opt,name=reportedDevice,proto3" json:"reportedDevice,omitempty"` // contains filtered or unexported fields }
func (*ReportDeviceStatusRequest) Descriptor
deprecated
func (*ReportDeviceStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportDeviceStatusRequest.ProtoReflect.Descriptor instead.
func (*ReportDeviceStatusRequest) GetDeviceName ¶
func (x *ReportDeviceStatusRequest) GetDeviceName() string
func (*ReportDeviceStatusRequest) GetReportedDevice ¶
func (x *ReportDeviceStatusRequest) GetReportedDevice() *DeviceStatus
func (*ReportDeviceStatusRequest) ProtoMessage ¶
func (*ReportDeviceStatusRequest) ProtoMessage()
func (*ReportDeviceStatusRequest) ProtoReflect ¶
func (x *ReportDeviceStatusRequest) ProtoReflect() protoreflect.Message
func (*ReportDeviceStatusRequest) Reset ¶
func (x *ReportDeviceStatusRequest) Reset()
func (*ReportDeviceStatusRequest) String ¶
func (x *ReportDeviceStatusRequest) String() string
type ReportDeviceStatusResponse ¶
type ReportDeviceStatusResponse struct {
// contains filtered or unexported fields
}
func (*ReportDeviceStatusResponse) Descriptor
deprecated
func (*ReportDeviceStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReportDeviceStatusResponse.ProtoReflect.Descriptor instead.
func (*ReportDeviceStatusResponse) ProtoMessage ¶
func (*ReportDeviceStatusResponse) ProtoMessage()
func (*ReportDeviceStatusResponse) ProtoReflect ¶
func (x *ReportDeviceStatusResponse) ProtoReflect() protoreflect.Message
func (*ReportDeviceStatusResponse) Reset ¶
func (x *ReportDeviceStatusResponse) Reset()
func (*ReportDeviceStatusResponse) String ¶
func (x *ReportDeviceStatusResponse) String() string
type Twin ¶
type Twin struct { // the name of the property. PropertyName string `protobuf:"bytes,1,opt,name=propertyName,proto3" json:"propertyName,omitempty"` // the desired value of the property configured by device manager. Desired *TwinProperty `protobuf:"bytes,2,opt,name=desired,proto3" json:"desired,omitempty"` // the reported value of the property from the real device. Reported *TwinProperty `protobuf:"bytes,3,opt,name=reported,proto3" json:"reported,omitempty"` // contains filtered or unexported fields }
Twin is the digital model of a device. It contains a series of properties.
func (*Twin) Descriptor
deprecated
func (*Twin) GetDesired ¶
func (x *Twin) GetDesired() *TwinProperty
func (*Twin) GetPropertyName ¶
func (*Twin) GetReported ¶
func (x *Twin) GetReported() *TwinProperty
func (*Twin) ProtoMessage ¶
func (*Twin) ProtoMessage()
func (*Twin) ProtoReflect ¶
func (x *Twin) ProtoReflect() protoreflect.Message
type TwinProperty ¶
type TwinProperty struct { // the value of the property. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // the metadata to describe this property. Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
TwinProperty is the specification of the property.
func (*TwinProperty) Descriptor
deprecated
func (*TwinProperty) Descriptor() ([]byte, []int)
Deprecated: Use TwinProperty.ProtoReflect.Descriptor instead.
func (*TwinProperty) GetMetadata ¶
func (x *TwinProperty) GetMetadata() map[string]string
func (*TwinProperty) GetValue ¶
func (x *TwinProperty) GetValue() string
func (*TwinProperty) ProtoMessage ¶
func (*TwinProperty) ProtoMessage()
func (*TwinProperty) ProtoReflect ¶
func (x *TwinProperty) ProtoReflect() protoreflect.Message
func (*TwinProperty) Reset ¶
func (x *TwinProperty) Reset()
func (*TwinProperty) String ¶
func (x *TwinProperty) String() string
type UnimplementedDeviceManagerServiceServer ¶
type UnimplementedDeviceManagerServiceServer struct { }
UnimplementedDeviceManagerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDeviceManagerServiceServer) MapperRegister ¶
func (*UnimplementedDeviceManagerServiceServer) MapperRegister(context.Context, *MapperRegisterRequest) (*MapperRegisterResponse, error)
func (*UnimplementedDeviceManagerServiceServer) ReportDeviceStatus ¶
func (*UnimplementedDeviceManagerServiceServer) ReportDeviceStatus(context.Context, *ReportDeviceStatusRequest) (*ReportDeviceStatusResponse, error)
type UnimplementedDeviceMapperServiceServer ¶
type UnimplementedDeviceMapperServiceServer struct { }
UnimplementedDeviceMapperServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDeviceMapperServiceServer) CreateDeviceModel ¶
func (*UnimplementedDeviceMapperServiceServer) CreateDeviceModel(context.Context, *CreateDeviceModelRequest) (*CreateDeviceModelResponse, error)
func (*UnimplementedDeviceMapperServiceServer) GetDevice ¶
func (*UnimplementedDeviceMapperServiceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
func (*UnimplementedDeviceMapperServiceServer) RegisterDevice ¶
func (*UnimplementedDeviceMapperServiceServer) RegisterDevice(context.Context, *RegisterDeviceRequest) (*RegisterDeviceResponse, error)
func (*UnimplementedDeviceMapperServiceServer) RemoveDevice ¶
func (*UnimplementedDeviceMapperServiceServer) RemoveDevice(context.Context, *RemoveDeviceRequest) (*RemoveDeviceResponse, error)
func (*UnimplementedDeviceMapperServiceServer) RemoveDeviceModel ¶
func (*UnimplementedDeviceMapperServiceServer) RemoveDeviceModel(context.Context, *RemoveDeviceModelRequest) (*RemoveDeviceModelResponse, error)
func (*UnimplementedDeviceMapperServiceServer) UpdateDevice ¶
func (*UnimplementedDeviceMapperServiceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error)
func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceModel ¶
func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceModel(context.Context, *UpdateDeviceModelRequest) (*UpdateDeviceModelResponse, error)
func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceStatus ¶
func (*UnimplementedDeviceMapperServiceServer) UpdateDeviceStatus(context.Context, *UpdateDeviceStatusRequest) (*UpdateDeviceStatusResponse, error)
type UpdateDeviceModelRequest ¶
type UpdateDeviceModelRequest struct { Model *DeviceModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*UpdateDeviceModelRequest) Descriptor
deprecated
func (*UpdateDeviceModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceModelRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceModelRequest) GetModel ¶
func (x *UpdateDeviceModelRequest) GetModel() *DeviceModel
func (*UpdateDeviceModelRequest) ProtoMessage ¶
func (*UpdateDeviceModelRequest) ProtoMessage()
func (*UpdateDeviceModelRequest) ProtoReflect ¶
func (x *UpdateDeviceModelRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceModelRequest) Reset ¶
func (x *UpdateDeviceModelRequest) Reset()
func (*UpdateDeviceModelRequest) String ¶
func (x *UpdateDeviceModelRequest) String() string
type UpdateDeviceModelResponse ¶
type UpdateDeviceModelResponse struct {
// contains filtered or unexported fields
}
func (*UpdateDeviceModelResponse) Descriptor
deprecated
func (*UpdateDeviceModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceModelResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeviceModelResponse) ProtoMessage ¶
func (*UpdateDeviceModelResponse) ProtoMessage()
func (*UpdateDeviceModelResponse) ProtoReflect ¶
func (x *UpdateDeviceModelResponse) ProtoReflect() protoreflect.Message
func (*UpdateDeviceModelResponse) Reset ¶
func (x *UpdateDeviceModelResponse) Reset()
func (*UpdateDeviceModelResponse) String ¶
func (x *UpdateDeviceModelResponse) String() string
type UpdateDeviceRequest ¶
type UpdateDeviceRequest struct { Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*UpdateDeviceRequest) Descriptor
deprecated
func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRequest) GetDevice ¶
func (x *UpdateDeviceRequest) GetDevice() *Device
func (*UpdateDeviceRequest) ProtoMessage ¶
func (*UpdateDeviceRequest) ProtoMessage()
func (*UpdateDeviceRequest) ProtoReflect ¶
func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceRequest) Reset ¶
func (x *UpdateDeviceRequest) Reset()
func (*UpdateDeviceRequest) String ¶
func (x *UpdateDeviceRequest) String() string
type UpdateDeviceResponse ¶
type UpdateDeviceResponse struct {
// contains filtered or unexported fields
}
func (*UpdateDeviceResponse) Descriptor
deprecated
func (*UpdateDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeviceResponse) ProtoMessage ¶
func (*UpdateDeviceResponse) ProtoMessage()
func (*UpdateDeviceResponse) ProtoReflect ¶
func (x *UpdateDeviceResponse) ProtoReflect() protoreflect.Message
func (*UpdateDeviceResponse) Reset ¶
func (x *UpdateDeviceResponse) Reset()
func (*UpdateDeviceResponse) String ¶
func (x *UpdateDeviceResponse) String() string
type UpdateDeviceStatusRequest ¶
type UpdateDeviceStatusRequest struct { DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` DesiredDevice *DeviceStatus `protobuf:"bytes,2,opt,name=desiredDevice,proto3" json:"desiredDevice,omitempty"` // contains filtered or unexported fields }
func (*UpdateDeviceStatusRequest) Descriptor
deprecated
func (*UpdateDeviceStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceStatusRequest) GetDesiredDevice ¶
func (x *UpdateDeviceStatusRequest) GetDesiredDevice() *DeviceStatus
func (*UpdateDeviceStatusRequest) GetDeviceName ¶
func (x *UpdateDeviceStatusRequest) GetDeviceName() string
func (*UpdateDeviceStatusRequest) ProtoMessage ¶
func (*UpdateDeviceStatusRequest) ProtoMessage()
func (*UpdateDeviceStatusRequest) ProtoReflect ¶
func (x *UpdateDeviceStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceStatusRequest) Reset ¶
func (x *UpdateDeviceStatusRequest) Reset()
func (*UpdateDeviceStatusRequest) String ¶
func (x *UpdateDeviceStatusRequest) String() string
type UpdateDeviceStatusResponse ¶
type UpdateDeviceStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateDeviceStatusResponse) Descriptor
deprecated
func (*UpdateDeviceStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeviceStatusResponse) ProtoMessage ¶
func (*UpdateDeviceStatusResponse) ProtoMessage()
func (*UpdateDeviceStatusResponse) ProtoReflect ¶
func (x *UpdateDeviceStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateDeviceStatusResponse) Reset ¶
func (x *UpdateDeviceStatusResponse) Reset()
func (*UpdateDeviceStatusResponse) String ¶
func (x *UpdateDeviceStatusResponse) String() string
type VisitorConfigBluetooth ¶
type VisitorConfigBluetooth struct { // characteristicUUID of Bluetooth. CharacteristicUUID string `protobuf:"bytes,1,opt,name=characteristicUUID,proto3" json:"characteristicUUID,omitempty"` // dataWrite of Bluetooth. DataWrite map[string][]byte `` /* 159-byte string literal not displayed */ // BluetoothReadConverter of Bluetooth. DataConverter *BluetoothReadConverter `protobuf:"bytes,3,opt,name=dataConverter,proto3" json:"dataConverter,omitempty"` // contains filtered or unexported fields }
the visitor to collect the properties of the device of Bluetooth.
func (*VisitorConfigBluetooth) Descriptor
deprecated
func (*VisitorConfigBluetooth) Descriptor() ([]byte, []int)
Deprecated: Use VisitorConfigBluetooth.ProtoReflect.Descriptor instead.
func (*VisitorConfigBluetooth) GetCharacteristicUUID ¶
func (x *VisitorConfigBluetooth) GetCharacteristicUUID() string
func (*VisitorConfigBluetooth) GetDataConverter ¶
func (x *VisitorConfigBluetooth) GetDataConverter() *BluetoothReadConverter
func (*VisitorConfigBluetooth) GetDataWrite ¶
func (x *VisitorConfigBluetooth) GetDataWrite() map[string][]byte
func (*VisitorConfigBluetooth) ProtoMessage ¶
func (*VisitorConfigBluetooth) ProtoMessage()
func (*VisitorConfigBluetooth) ProtoReflect ¶
func (x *VisitorConfigBluetooth) ProtoReflect() protoreflect.Message
func (*VisitorConfigBluetooth) Reset ¶
func (x *VisitorConfigBluetooth) Reset()
func (*VisitorConfigBluetooth) String ¶
func (x *VisitorConfigBluetooth) String() string
type VisitorConfigCustomized ¶
type VisitorConfigCustomized struct { ProtocolName string `protobuf:"bytes,1,opt,name=protocolName,proto3" json:"protocolName,omitempty"` ConfigData *CustomizedValue `protobuf:"bytes,2,opt,name=configData,proto3" json:"configData,omitempty"` // contains filtered or unexported fields }
the visitor to collect the properties of the device of customized protocol.
func (*VisitorConfigCustomized) Descriptor
deprecated
func (*VisitorConfigCustomized) Descriptor() ([]byte, []int)
Deprecated: Use VisitorConfigCustomized.ProtoReflect.Descriptor instead.
func (*VisitorConfigCustomized) GetConfigData ¶
func (x *VisitorConfigCustomized) GetConfigData() *CustomizedValue
func (*VisitorConfigCustomized) GetProtocolName ¶
func (x *VisitorConfigCustomized) GetProtocolName() string
func (*VisitorConfigCustomized) ProtoMessage ¶
func (*VisitorConfigCustomized) ProtoMessage()
func (*VisitorConfigCustomized) ProtoReflect ¶
func (x *VisitorConfigCustomized) ProtoReflect() protoreflect.Message
func (*VisitorConfigCustomized) Reset ¶
func (x *VisitorConfigCustomized) Reset()
func (*VisitorConfigCustomized) String ¶
func (x *VisitorConfigCustomized) String() string
type VisitorConfigModbus ¶
type VisitorConfigModbus struct { // register of Modbus Register string `protobuf:"bytes,1,opt,name=register,proto3" json:"register,omitempty"` // offset of Modbus. Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // limit of Modbus. Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // scale of Modbus. Scale float64 `protobuf:"fixed64,4,opt,name=scale,proto3" json:"scale,omitempty"` // isSwap of Modbus. IsSwap bool `protobuf:"varint,5,opt,name=isSwap,proto3" json:"isSwap,omitempty"` // isRegisterSwap of Modbus. IsRegisterSwap bool `protobuf:"varint,6,opt,name=isRegisterSwap,proto3" json:"isRegisterSwap,omitempty"` // contains filtered or unexported fields }
the visitor to collect the properties of the device of Modbus.
func (*VisitorConfigModbus) Descriptor
deprecated
func (*VisitorConfigModbus) Descriptor() ([]byte, []int)
Deprecated: Use VisitorConfigModbus.ProtoReflect.Descriptor instead.
func (*VisitorConfigModbus) GetIsRegisterSwap ¶
func (x *VisitorConfigModbus) GetIsRegisterSwap() bool
func (*VisitorConfigModbus) GetIsSwap ¶
func (x *VisitorConfigModbus) GetIsSwap() bool
func (*VisitorConfigModbus) GetLimit ¶
func (x *VisitorConfigModbus) GetLimit() int64
func (*VisitorConfigModbus) GetOffset ¶
func (x *VisitorConfigModbus) GetOffset() int64
func (*VisitorConfigModbus) GetRegister ¶
func (x *VisitorConfigModbus) GetRegister() string
func (*VisitorConfigModbus) GetScale ¶
func (x *VisitorConfigModbus) GetScale() float64
func (*VisitorConfigModbus) ProtoMessage ¶
func (*VisitorConfigModbus) ProtoMessage()
func (*VisitorConfigModbus) ProtoReflect ¶
func (x *VisitorConfigModbus) ProtoReflect() protoreflect.Message
func (*VisitorConfigModbus) Reset ¶
func (x *VisitorConfigModbus) Reset()
func (*VisitorConfigModbus) String ¶
func (x *VisitorConfigModbus) String() string
type VisitorConfigOPCUA ¶
type VisitorConfigOPCUA struct { // ID of the node. NodeID string `protobuf:"bytes,1,opt,name=nodeID,proto3" json:"nodeID,omitempty"` // name of browse. BrowseName string `protobuf:"bytes,2,opt,name=browseName,proto3" json:"browseName,omitempty"` // contains filtered or unexported fields }
the visitor to collect the properties of the device of OPC UA.
func (*VisitorConfigOPCUA) Descriptor
deprecated
func (*VisitorConfigOPCUA) Descriptor() ([]byte, []int)
Deprecated: Use VisitorConfigOPCUA.ProtoReflect.Descriptor instead.
func (*VisitorConfigOPCUA) GetBrowseName ¶
func (x *VisitorConfigOPCUA) GetBrowseName() string
func (*VisitorConfigOPCUA) GetNodeID ¶
func (x *VisitorConfigOPCUA) GetNodeID() string
func (*VisitorConfigOPCUA) ProtoMessage ¶
func (*VisitorConfigOPCUA) ProtoMessage()
func (*VisitorConfigOPCUA) ProtoReflect ¶
func (x *VisitorConfigOPCUA) ProtoReflect() protoreflect.Message
func (*VisitorConfigOPCUA) Reset ¶
func (x *VisitorConfigOPCUA) Reset()
func (*VisitorConfigOPCUA) String ¶
func (x *VisitorConfigOPCUA) String() string