client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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)
	// 同步调用设备属性
	SendProperty(ctx context.Context, in *SendPropertyReq, 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 HubLogIndex

type HubLogIndex = di.HubLogIndex

type HubLogIndexReq

type HubLogIndexReq = di.HubLogIndexReq

type HubLogIndexResp

type HubLogIndexResp = di.HubLogIndexResp

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 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 SendPropertyReq

type SendPropertyReq = di.SendPropertyReq

type SendPropertyResp

type SendPropertyResp = di.SendPropertyResp

Jump to

Keyboard shortcuts

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