Documentation ¶
Index ¶
- func Auth(ctx context.Context, svcCtx *svc.ServiceContext, dev devices.Core, ...) (outParam map[string]any, err error)
- func CheckIsOnline(ctx context.Context, svcCtx *svc.ServiceContext, core devices.Core) (protocolCode string, err error)
- func ToSendOptionDo(in *dm.SendOption) *serverDo.SendOption
- type ActionReadLogic
- type ActionRespLogic
- type ActionSendLogic
- type GatewayGetFoundSendLogic
- type GatewayNotifyBindSendLogic
- type PropertyControlMultiSendLogic
- func (l *PropertyControlMultiSendLogic) MultiSendMultiProductProperty(in *dm.PropertyControlMultiSendReq) ([]*dm.PropertyControlSendMsg, error)
- func (l *PropertyControlMultiSendLogic) MultiSendOneProductProperty(in *dm.PropertyControlMultiSendReq) ([]*dm.PropertyControlSendMsg, error)
- func (l *PropertyControlMultiSendLogic) PropertyControlMultiSend(in *dm.PropertyControlMultiSendReq) (*dm.PropertyControlMultiSendResp, error)
- type PropertyControlReadLogic
- type PropertyControlSendLogic
- type PropertyGetReportSendLogic
- type SendMsgLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsOnline ¶
func ToSendOptionDo ¶
func ToSendOptionDo(in *dm.SendOption) *serverDo.SendOption
Types ¶
type ActionReadLogic ¶
func NewActionReadLogic ¶
func NewActionReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionReadLogic
func (*ActionReadLogic) ActionRead ¶
func (l *ActionReadLogic) ActionRead(in *dm.RespReadReq) (*dm.ActionSendResp, error)
获取异步调用设备行为的结果
type ActionRespLogic ¶
func NewActionRespLogic ¶
func NewActionRespLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionRespLogic
func (*ActionRespLogic) ActionResp ¶
func (l *ActionRespLogic) ActionResp(in *dm.ActionRespReq) (*dm.Empty, error)
回复调用设备行为
type ActionSendLogic ¶
func NewActionSendLogic ¶
func NewActionSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionSendLogic
func (*ActionSendLogic) ActionSend ¶
func (l *ActionSendLogic) ActionSend(in *dm.ActionSendReq) (ret *dm.ActionSendResp, err error)
调用设备行为
type GatewayGetFoundSendLogic ¶
func NewGatewayGetFoundSendLogic ¶
func NewGatewayGetFoundSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GatewayGetFoundSendLogic
func (*GatewayGetFoundSendLogic) GatewayGetFoundSend ¶
func (l *GatewayGetFoundSendLogic) GatewayGetFoundSend(in *dm.GatewayGetFoundReq) (*dm.Empty, error)
实时获取网关拓扑关系
type GatewayNotifyBindSendLogic ¶
func NewGatewayNotifyBindSendLogic ¶
func NewGatewayNotifyBindSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GatewayNotifyBindSendLogic
func (*GatewayNotifyBindSendLogic) GatewayNotifyBindSend ¶
func (l *GatewayNotifyBindSendLogic) GatewayNotifyBindSend(in *dm.GatewayNotifyBindSendReq) (*dm.Empty, error)
通知网关绑定子设备
type PropertyControlMultiSendLogic ¶
func NewPropertyControlMultiSendLogic ¶
func NewPropertyControlMultiSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlMultiSendLogic
func (*PropertyControlMultiSendLogic) MultiSendMultiProductProperty ¶
func (l *PropertyControlMultiSendLogic) MultiSendMultiProductProperty(in *dm.PropertyControlMultiSendReq) ([]*dm.PropertyControlSendMsg, error)
func (*PropertyControlMultiSendLogic) MultiSendOneProductProperty ¶
func (l *PropertyControlMultiSendLogic) MultiSendOneProductProperty(in *dm.PropertyControlMultiSendReq) ([]*dm.PropertyControlSendMsg, error)
func (*PropertyControlMultiSendLogic) PropertyControlMultiSend ¶
func (l *PropertyControlMultiSendLogic) PropertyControlMultiSend(in *dm.PropertyControlMultiSendReq) (*dm.PropertyControlMultiSendResp, error)
批量调用设备属性
type PropertyControlReadLogic ¶
func NewPropertyControlReadLogic ¶
func NewPropertyControlReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlReadLogic
func (*PropertyControlReadLogic) PropertyControlRead ¶
func (l *PropertyControlReadLogic) PropertyControlRead(in *dm.RespReadReq) (*dm.PropertyControlSendResp, error)
获取异步调用设备属性的结果
type PropertyControlSendLogic ¶
func NewPropertyControlSendLogic ¶
func NewPropertyControlSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlSendLogic
func (*PropertyControlSendLogic) PropertyControlSend ¶
func (l *PropertyControlSendLogic) PropertyControlSend(in *dm.PropertyControlSendReq) (ret *dm.PropertyControlSendResp, err error)
调用设备属性
type PropertyGetReportSendLogic ¶
func NewPropertyGetReportSendLogic ¶
func NewPropertyGetReportSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyGetReportSendLogic
func (*PropertyGetReportSendLogic) PropertyGetReportSend ¶
func (l *PropertyGetReportSendLogic) PropertyGetReportSend(in *dm.PropertyGetReportSendReq) (ret *dm.PropertyGetReportSendResp, err error)
请求设备获取设备最新属性
type SendMsgLogic ¶
func NewSendMsgLogic ¶
func NewSendMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendMsgLogic
func (*SendMsgLogic) SendMsg ¶
func (l *SendMsgLogic) SendMsg(in *dm.SendMsgReq) (ret *dm.SendMsgResp, err error)
发送消息给设备
Source Files ¶
Click to show internal directories.
Click to hide internal directories.