Documentation ¶ Index ¶ type SendLogic func NewSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendLogic func (l *SendLogic) Send(r *http.Request, body []byte, req *types.DeviceInteractEdgeSendReq) (resp any, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type SendLogic ¶ type SendLogic struct { logx.Logger // contains filtered or unexported fields } func NewSendLogic ¶ func NewSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendLogic 设备使用http协议用云端交互,需要在http头中带上mqtt的账号密码(basic auth) func (*SendLogic) Send ¶ func (l *SendLogic) Send(r *http.Request, body []byte, req *types.DeviceInteractEdgeSendReq) (resp any, err error) Source Files ¶ View all Source files sendLogic.go Click to show internal directories. Click to hide internal directories.