wedge

package
v0.0.0-...-ed56255 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NumberMapping_off = slx.NumberMapping_off
View Source
const NumberMapping_on = slx.NumberMapping_on
View Source
const Status_Status_UNSET = slx.Status_Status_UNSET
View Source
const Status_ok = slx.Status_ok
View Source
const Status_pending = slx.Status_pending
View Source
const Status_update = slx.Status_update
View Source
const Type_Control = slx.Type_Control
View Source
const Type_Report = slx.Type_Report
View Source
const Type_TYPE_UNSET = slx.Type_TYPE_UNSET

Variables

View Source
var File_wedge_proto protoreflect.FileDescriptor
View Source
var NumberMapping_name = slx.NumberMapping_name
View Source
var NumberMapping_value = slx.NumberMapping_value
View Source
var Status_name = slx.Status_name
View Source
var Status_value = slx.Status_value
View Source
var Type_name = slx.Type_name
View Source
var Type_value = slx.Type_value

Functions

func RegisterWedgeServer

func RegisterWedgeServer(s *grpc.Server, srv WedgeServer)

Types

type Blob

type Blob = slx.Blob

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) Descriptor() ([]byte, []int)

Deprecated: Use Control.ProtoReflect.Descriptor instead.

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

func (*Control) Reset

func (x *Control) Reset()

func (*Control) String

func (x *Control) String() string

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 Device

type Device = slx.Device

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() uint32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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 Info

type Info = slx.Info

type Meta

type Meta = slx.Meta

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetDevice

func (x *Model) GetDevice() []*slx.Device

func (*Model) GetNode

func (x *Model) GetNode() *NodeIdentity

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

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 Number

type Number = slx.Number

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) Descriptor() ([]byte, []int)

Deprecated: Use Replay.ProtoReflect.Descriptor instead.

func (*Replay) GetError

func (x *Replay) GetError() *Error

func (*Replay) GetOk

func (x *Replay) GetOk() bool

func (*Replay) ProtoMessage

func (*Replay) ProtoMessage()

func (*Replay) ProtoReflect

func (x *Replay) ProtoReflect() protoreflect.Message

func (*Replay) Reset

func (x *Replay) Reset()

func (*Replay) String

func (x *Replay) String() string

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 State

type State = slx.State

type Status

type Status = slx.Status

type String

type String = slx.String

type Type

type Type = slx.Type

type UnimplementedWedgeServer

type UnimplementedWedgeServer struct {
}

UnimplementedWedgeServer can be embedded to have forward compatible implementations.

func (*UnimplementedWedgeServer) GetControl

func (*UnimplementedWedgeServer) GetModel

func (*UnimplementedWedgeServer) SetDevice

func (*UnimplementedWedgeServer) SetModel

func (*UnimplementedWedgeServer) SetState

func (*UnimplementedWedgeServer) SetValue

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 Value

type Value = slx.Value

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

WedgeServer is the server API for Wedge service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL