Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWedgeServer(s *grpc.Server, srv WedgeServer)
- type Blob
- type Control
- type DeleteDevice
- type Device
- type Error
- type GetControlRequest
- func (*GetControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetControlRequest) GetNode() *NodeIdentity
- func (*GetControlRequest) ProtoMessage()
- func (x *GetControlRequest) ProtoReflect() protoreflect.Message
- func (x *GetControlRequest) Reset()
- func (x *GetControlRequest) String() string
- type GetModelRequest
- type Info
- type Meta
- type Model
- type NodeIdentity
- type Number
- type NumberMapping
- type Replay
- type SetDeviceRequest
- func (*SetDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDeviceRequest) GetDevice() *slx.Device
- func (x *SetDeviceRequest) GetNode() *NodeIdentity
- func (*SetDeviceRequest) ProtoMessage()
- func (x *SetDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *SetDeviceRequest) Reset()
- func (x *SetDeviceRequest) String() string
- type SetModelRequest
- type SetStateRequest
- func (*SetStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetStateRequest) GetDeviceId() uint32
- func (x *SetStateRequest) GetNode() *NodeIdentity
- func (x *SetStateRequest) GetState() *slx.State
- func (x *SetStateRequest) GetValueId() uint32
- func (*SetStateRequest) ProtoMessage()
- func (x *SetStateRequest) ProtoReflect() protoreflect.Message
- func (x *SetStateRequest) Reset()
- func (x *SetStateRequest) String() string
- type SetValueRequest
- func (*SetValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetValueRequest) GetDeviceId() uint32
- func (x *SetValueRequest) GetNode() *NodeIdentity
- func (x *SetValueRequest) GetValue() *slx.Value
- func (*SetValueRequest) ProtoMessage()
- func (x *SetValueRequest) ProtoReflect() protoreflect.Message
- func (x *SetValueRequest) Reset()
- func (x *SetValueRequest) String() string
- type State
- type Status
- type String
- type Type
- type UnimplementedWedgeServer
- func (*UnimplementedWedgeServer) GetControl(context.Context, *GetControlRequest) (*Control, error)
- func (*UnimplementedWedgeServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
- func (*UnimplementedWedgeServer) SetDevice(context.Context, *SetDeviceRequest) (*Replay, error)
- func (*UnimplementedWedgeServer) SetModel(context.Context, *SetModelRequest) (*Replay, error)
- func (*UnimplementedWedgeServer) SetState(context.Context, *SetStateRequest) (*Replay, error)
- func (*UnimplementedWedgeServer) SetValue(context.Context, *SetValueRequest) (*Replay, error)
- type UpdateState
- func (*UpdateState) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateState) GetDeviceId() uint32
- func (x *UpdateState) GetState() *slx.State
- func (x *UpdateState) GetValueId() uint32
- func (*UpdateState) ProtoMessage()
- func (x *UpdateState) ProtoReflect() protoreflect.Message
- func (x *UpdateState) Reset()
- func (x *UpdateState) String() string
- type Value
- type WedgeClient
- type WedgeServer
Constants ¶
const NumberMapping_off = slx.NumberMapping_off
const NumberMapping_on = slx.NumberMapping_on
const Status_Status_UNSET = slx.Status_Status_UNSET
const Status_ok = slx.Status_ok
const Status_pending = slx.Status_pending
const Status_update = slx.Status_update
const Type_Control = slx.Type_Control
const Type_Report = slx.Type_Report
const Type_TYPE_UNSET = slx.Type_TYPE_UNSET
Variables ¶
var File_wedge_proto protoreflect.FileDescriptor
var NumberMapping_name = slx.NumberMapping_name
var NumberMapping_value = slx.NumberMapping_value
var Status_name = slx.Status_name
var Status_value = slx.Status_value
var Type_name = slx.Type_name
var Type_value = slx.Type_value
Functions ¶
func RegisterWedgeServer ¶
func RegisterWedgeServer(s *grpc.Server, srv WedgeServer)
Types ¶
type Control ¶
type Control struct { Update *UpdateState `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` Delete *DeleteDevice `protobuf:"bytes,2,opt,name=delete,proto3" json:"delete,omitempty"` // contains filtered or unexported fields }
func (*Control) Descriptor
deprecated
func (*Control) GetDelete ¶
func (x *Control) GetDelete() *DeleteDevice
func (*Control) GetUpdate ¶
func (x *Control) GetUpdate() *UpdateState
func (*Control) ProtoMessage ¶
func (*Control) ProtoMessage()
func (*Control) ProtoReflect ¶
func (x *Control) ProtoReflect() protoreflect.Message
type DeleteDevice ¶
type DeleteDevice struct { DeviceId uint32 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDevice) Descriptor
deprecated
func (*DeleteDevice) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDevice.ProtoReflect.Descriptor instead.
func (*DeleteDevice) GetDeviceId ¶
func (x *DeleteDevice) GetDeviceId() uint32
func (*DeleteDevice) ProtoMessage ¶
func (*DeleteDevice) ProtoMessage()
func (*DeleteDevice) ProtoReflect ¶
func (x *DeleteDevice) ProtoReflect() protoreflect.Message
func (*DeleteDevice) Reset ¶
func (x *DeleteDevice) Reset()
func (*DeleteDevice) String ¶
func (x *DeleteDevice) String() string
type Error ¶
type Error struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type GetControlRequest ¶
type GetControlRequest struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*GetControlRequest) Descriptor
deprecated
func (*GetControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.
func (*GetControlRequest) GetNode ¶
func (x *GetControlRequest) GetNode() *NodeIdentity
func (*GetControlRequest) ProtoMessage ¶
func (*GetControlRequest) ProtoMessage()
func (*GetControlRequest) ProtoReflect ¶
func (x *GetControlRequest) ProtoReflect() protoreflect.Message
func (*GetControlRequest) Reset ¶
func (x *GetControlRequest) Reset()
func (*GetControlRequest) String ¶
func (x *GetControlRequest) String() string
type GetModelRequest ¶
type GetModelRequest struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*GetModelRequest) Descriptor
deprecated
func (*GetModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
func (*GetModelRequest) GetNode ¶
func (x *GetModelRequest) GetNode() *NodeIdentity
func (*GetModelRequest) ProtoMessage ¶
func (*GetModelRequest) ProtoMessage()
func (*GetModelRequest) ProtoReflect ¶
func (x *GetModelRequest) ProtoReflect() protoreflect.Message
func (*GetModelRequest) Reset ¶
func (x *GetModelRequest) Reset()
func (*GetModelRequest) String ¶
func (x *GetModelRequest) String() string
type Model ¶
type Model struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Device []*slx.Device `protobuf:"bytes,2,rep,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) GetNode ¶
func (x *Model) GetNode() *NodeIdentity
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type NodeIdentity ¶
type NodeIdentity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
------ Report messages ------------
func (*NodeIdentity) Descriptor
deprecated
func (*NodeIdentity) Descriptor() ([]byte, []int)
Deprecated: Use NodeIdentity.ProtoReflect.Descriptor instead.
func (*NodeIdentity) GetId ¶
func (x *NodeIdentity) GetId() string
func (*NodeIdentity) ProtoMessage ¶
func (*NodeIdentity) ProtoMessage()
func (*NodeIdentity) ProtoReflect ¶
func (x *NodeIdentity) ProtoReflect() protoreflect.Message
func (*NodeIdentity) Reset ¶
func (x *NodeIdentity) Reset()
func (*NodeIdentity) String ¶
func (x *NodeIdentity) String() string
type NumberMapping ¶
type NumberMapping = slx.NumberMapping
type Replay ¶
type Replay struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Replay) Descriptor
deprecated
func (*Replay) ProtoMessage ¶
func (*Replay) ProtoMessage()
func (*Replay) ProtoReflect ¶
func (x *Replay) ProtoReflect() protoreflect.Message
type SetDeviceRequest ¶
type SetDeviceRequest struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Device *slx.Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*SetDeviceRequest) Descriptor
deprecated
func (*SetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDeviceRequest.ProtoReflect.Descriptor instead.
func (*SetDeviceRequest) GetDevice ¶
func (x *SetDeviceRequest) GetDevice() *slx.Device
func (*SetDeviceRequest) GetNode ¶
func (x *SetDeviceRequest) GetNode() *NodeIdentity
func (*SetDeviceRequest) ProtoMessage ¶
func (*SetDeviceRequest) ProtoMessage()
func (*SetDeviceRequest) ProtoReflect ¶
func (x *SetDeviceRequest) ProtoReflect() protoreflect.Message
func (*SetDeviceRequest) Reset ¶
func (x *SetDeviceRequest) Reset()
func (*SetDeviceRequest) String ¶
func (x *SetDeviceRequest) String() string
type SetModelRequest ¶
type SetModelRequest struct { Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
Create/Update all node data model
func (*SetModelRequest) Descriptor
deprecated
func (*SetModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetModelRequest.ProtoReflect.Descriptor instead.
func (*SetModelRequest) GetModel ¶
func (x *SetModelRequest) GetModel() *Model
func (*SetModelRequest) ProtoMessage ¶
func (*SetModelRequest) ProtoMessage()
func (*SetModelRequest) ProtoReflect ¶
func (x *SetModelRequest) ProtoReflect() protoreflect.Message
func (*SetModelRequest) Reset ¶
func (x *SetModelRequest) Reset()
func (*SetModelRequest) String ¶
func (x *SetModelRequest) String() string
type SetStateRequest ¶
type SetStateRequest struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` DeviceId uint32 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` ValueId uint32 `protobuf:"varint,3,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"` State *slx.State `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*SetStateRequest) Descriptor
deprecated
func (*SetStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetStateRequest.ProtoReflect.Descriptor instead.
func (*SetStateRequest) GetDeviceId ¶
func (x *SetStateRequest) GetDeviceId() uint32
func (*SetStateRequest) GetNode ¶
func (x *SetStateRequest) GetNode() *NodeIdentity
func (*SetStateRequest) GetState ¶
func (x *SetStateRequest) GetState() *slx.State
func (*SetStateRequest) GetValueId ¶
func (x *SetStateRequest) GetValueId() uint32
func (*SetStateRequest) ProtoMessage ¶
func (*SetStateRequest) ProtoMessage()
func (*SetStateRequest) ProtoReflect ¶
func (x *SetStateRequest) ProtoReflect() protoreflect.Message
func (*SetStateRequest) Reset ¶
func (x *SetStateRequest) Reset()
func (*SetStateRequest) String ¶
func (x *SetStateRequest) String() string
type SetValueRequest ¶
type SetValueRequest struct { Node *NodeIdentity `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` DeviceId uint32 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Value *slx.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SetValueRequest) Descriptor
deprecated
func (*SetValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetValueRequest.ProtoReflect.Descriptor instead.
func (*SetValueRequest) GetDeviceId ¶
func (x *SetValueRequest) GetDeviceId() uint32
func (*SetValueRequest) GetNode ¶
func (x *SetValueRequest) GetNode() *NodeIdentity
func (*SetValueRequest) GetValue ¶
func (x *SetValueRequest) GetValue() *slx.Value
func (*SetValueRequest) ProtoMessage ¶
func (*SetValueRequest) ProtoMessage()
func (*SetValueRequest) ProtoReflect ¶
func (x *SetValueRequest) ProtoReflect() protoreflect.Message
func (*SetValueRequest) Reset ¶
func (x *SetValueRequest) Reset()
func (*SetValueRequest) String ¶
func (x *SetValueRequest) String() string
type UnimplementedWedgeServer ¶
type UnimplementedWedgeServer struct { }
UnimplementedWedgeServer can be embedded to have forward compatible implementations.
func (*UnimplementedWedgeServer) GetControl ¶
func (*UnimplementedWedgeServer) GetControl(context.Context, *GetControlRequest) (*Control, error)
func (*UnimplementedWedgeServer) GetModel ¶
func (*UnimplementedWedgeServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
func (*UnimplementedWedgeServer) SetDevice ¶
func (*UnimplementedWedgeServer) SetDevice(context.Context, *SetDeviceRequest) (*Replay, error)
func (*UnimplementedWedgeServer) SetModel ¶
func (*UnimplementedWedgeServer) SetModel(context.Context, *SetModelRequest) (*Replay, error)
func (*UnimplementedWedgeServer) SetState ¶
func (*UnimplementedWedgeServer) SetState(context.Context, *SetStateRequest) (*Replay, error)
func (*UnimplementedWedgeServer) SetValue ¶
func (*UnimplementedWedgeServer) SetValue(context.Context, *SetValueRequest) (*Replay, error)
type UpdateState ¶
type UpdateState struct { State *slx.State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` DeviceId uint32 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` ValueId uint32 `protobuf:"varint,3,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"` // contains filtered or unexported fields }
----- Control messages ----------
func (*UpdateState) Descriptor
deprecated
func (*UpdateState) Descriptor() ([]byte, []int)
Deprecated: Use UpdateState.ProtoReflect.Descriptor instead.
func (*UpdateState) GetDeviceId ¶
func (x *UpdateState) GetDeviceId() uint32
func (*UpdateState) GetState ¶
func (x *UpdateState) GetState() *slx.State
func (*UpdateState) GetValueId ¶
func (x *UpdateState) GetValueId() uint32
func (*UpdateState) ProtoMessage ¶
func (*UpdateState) ProtoMessage()
func (*UpdateState) ProtoReflect ¶
func (x *UpdateState) ProtoReflect() protoreflect.Message
func (*UpdateState) Reset ¶
func (x *UpdateState) Reset()
func (*UpdateState) String ¶
func (x *UpdateState) String() string
type WedgeClient ¶
type WedgeClient interface { SetModel(ctx context.Context, in *SetModelRequest, opts ...grpc.CallOption) (*Replay, error) SetDevice(ctx context.Context, in *SetDeviceRequest, opts ...grpc.CallOption) (*Replay, error) SetValue(ctx context.Context, in *SetValueRequest, opts ...grpc.CallOption) (*Replay, error) SetState(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*Replay, error) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error) }
WedgeClient is the client API for Wedge service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWedgeClient ¶
func NewWedgeClient(cc grpc.ClientConnInterface) WedgeClient
type WedgeServer ¶
type WedgeServer interface { SetModel(context.Context, *SetModelRequest) (*Replay, error) SetDevice(context.Context, *SetDeviceRequest) (*Replay, error) SetValue(context.Context, *SetValueRequest) (*Replay, error) SetState(context.Context, *SetStateRequest) (*Replay, error) GetModel(context.Context, *GetModelRequest) (*Model, error) GetControl(context.Context, *GetControlRequest) (*Control, error) }
WedgeServer is the server API for Wedge service.