deviceinteract

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 PageInfo

type PageInfo = di.PageInfo

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 Response

type Response = di.Response

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

Jump to

Keyboard shortcuts

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