Documentation ¶
Index ¶
- type DeviceInteract
- type EventIndex
- type EventIndexResp
- type EventLogIndexReq
- type GetPropertyReplyReq
- type GetPropertyReplyResp
- type HubLogIndex
- type HubLogIndexReq
- type HubLogIndexResp
- type MultiSendPropertyReq
- type MultiSendPropertyResp
- type PageInfo
- type PropertyIndex
- type PropertyIndexResp
- type PropertyLatestIndexReq
- type PropertyLogIndexReq
- type RespReadReq
- type Response
- type SdkLogIndex
- type SdkLogIndexReq
- type SdkLogIndexResp
- type SendActionReq
- type SendActionResp
- type SendMsgReq
- type SendMsgResp
- type SendPropertyMsg
- type SendPropertyReq
- type SendPropertyResp
- type ShadowIndex
- type ShadowIndexResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInteract ¶
type DeviceInteract interface { // 调用设备行为 SendAction(ctx context.Context, in *SendActionReq, opts ...grpc.CallOption) (*SendActionResp, error) // 获取异步调用设备行为的结果 ActionRead(ctx context.Context, in *RespReadReq, opts ...grpc.CallOption) (*SendActionResp, error) // 请求设备获取设备最新属性 GetPropertyReply(ctx context.Context, in *GetPropertyReplyReq, opts ...grpc.CallOption) (*GetPropertyReplyResp, error) // 调用设备属性 SendProperty(ctx context.Context, in *SendPropertyReq, opts ...grpc.CallOption) (*SendPropertyResp, error) // 批量调用设备属性 MultiSendProperty(ctx context.Context, in *MultiSendPropertyReq, opts ...grpc.CallOption) (*MultiSendPropertyResp, error) // 获取异步调用设备属性的结果 PropertyRead(ctx context.Context, in *RespReadReq, opts ...grpc.CallOption) (*SendPropertyResp, error) // 发送消息给设备 SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error) }
func NewDeviceInteract ¶
func NewDeviceInteract(cli zrpc.Client) DeviceInteract
func NewDirectDeviceInteract ¶
func NewDirectDeviceInteract(svcCtx *svc.ServiceContext, svr di.DeviceInteractServer) DeviceInteract
type EventIndex ¶
type EventIndex = di.EventIndex
type EventIndexResp ¶
type EventIndexResp = di.EventIndexResp
type EventLogIndexReq ¶
type EventLogIndexReq = di.EventLogIndexReq
type GetPropertyReplyReq ¶ added in v0.5.1
type GetPropertyReplyReq = di.GetPropertyReplyReq
type GetPropertyReplyResp ¶ added in v0.5.1
type GetPropertyReplyResp = di.GetPropertyReplyResp
type HubLogIndex ¶
type HubLogIndex = di.HubLogIndex
type HubLogIndexReq ¶
type HubLogIndexReq = di.HubLogIndexReq
type HubLogIndexResp ¶
type HubLogIndexResp = di.HubLogIndexResp
type MultiSendPropertyReq ¶ added in v0.5.1
type MultiSendPropertyReq = di.MultiSendPropertyReq
type MultiSendPropertyResp ¶ added in v0.5.1
type MultiSendPropertyResp = di.MultiSendPropertyResp
type PropertyIndex ¶
type PropertyIndex = di.PropertyIndex
type PropertyIndexResp ¶
type PropertyIndexResp = di.PropertyIndexResp
type PropertyLatestIndexReq ¶
type PropertyLatestIndexReq = di.PropertyLatestIndexReq
type PropertyLogIndexReq ¶
type PropertyLogIndexReq = di.PropertyLogIndexReq
type RespReadReq ¶ added in v0.4.1
type RespReadReq = di.RespReadReq
type SdkLogIndex ¶
type SdkLogIndex = di.SdkLogIndex
type SdkLogIndexReq ¶
type SdkLogIndexReq = di.SdkLogIndexReq
type SdkLogIndexResp ¶
type SdkLogIndexResp = di.SdkLogIndexResp
type SendActionReq ¶
type SendActionReq = di.SendActionReq
type SendActionResp ¶
type SendActionResp = di.SendActionResp
type SendMsgReq ¶
type SendMsgReq = di.SendMsgReq
type SendMsgResp ¶
type SendMsgResp = di.SendMsgResp
type SendPropertyMsg ¶ added in v0.5.1
type SendPropertyMsg = di.SendPropertyMsg
type SendPropertyReq ¶
type SendPropertyReq = di.SendPropertyReq
type SendPropertyResp ¶
type SendPropertyResp = di.SendPropertyResp
type ShadowIndex ¶ added in v0.5.1
type ShadowIndex = di.ShadowIndex
type ShadowIndexResp ¶ added in v0.5.1
type ShadowIndexResp = di.ShadowIndexResp
Click to show internal directories.
Click to hide internal directories.