edge

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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