north

package
v0.0.0-...-fc28734 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MQTTSystemConfig = "baetyl-system"

Variables

This section is empty.

Functions

func CacheMsg

func CacheMsg(cache cache.Cache, bucketName string, failMsg chan []byte)

Types

type ClientNorth

type ClientNorth struct {
	// contains filtered or unexported fields
}

func CreateNorthClient

func CreateNorthClient(cfg config.Config, bucketName string) (*ClientNorth, error)

func (*ClientNorth) ClearUselessData

func (n *ClientNorth) ClearUselessData(deviceArray []string)

func (*ClientNorth) DataConvertFuncRun

func (n *ClientNorth) DataConvertFuncRun(msg *link.SendMessage) error

func (*ClientNorth) EnableCacheMsgSend

func (n *ClientNorth) EnableCacheMsgSend(bucket string)

func (*ClientNorth) MsgSend

func (n *ClientNorth) MsgSend(ctx *comctx.Context, msg *link.SendMessage) error

func (*ClientNorth) Offline

func (n *ClientNorth) Offline(ctx *comctx.Context, node string, info *dm.DeviceInfo) error

func (*ClientNorth) Online

func (n *ClientNorth) Online(ctx *comctx.Context, node string, info *dm.DeviceInfo) error

func (*ClientNorth) ReportDeviceEvents

func (n *ClientNorth) ReportDeviceEvents(ctx *comctx.Context, node string, info *dm.DeviceInfo, report v1.EventReport) error

func (*ClientNorth) ReportDeviceProperties

func (n *ClientNorth) ReportDeviceProperties(ctx *comctx.Context, node string, info *dm.DeviceInfo, report v1.Report, topic string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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