pubApp

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsClient

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

func (*NatsClient) DeviceStatusConnected

func (n *NatsClient) DeviceStatusConnected(ctx context.Context, msg application.ConnectMsg) error

func (*NatsClient) DeviceStatusDisConnected

func (n *NatsClient) DeviceStatusDisConnected(ctx context.Context, msg application.ConnectMsg) error

func (*NatsClient) DeviceThingActionReport added in v0.6.0

func (n *NatsClient) DeviceThingActionReport(ctx context.Context, msg application.ActionReport) error

func (*NatsClient) DeviceThingEventReport

func (n *NatsClient) DeviceThingEventReport(ctx context.Context, msg application.EventReport) error

func (*NatsClient) DeviceThingPropertyReport

func (n *NatsClient) DeviceThingPropertyReport(ctx context.Context, msg application.PropertyReport) error

应用事件通知-设备物模型属性上报通知

type PubApp

type PubApp interface {
	DeviceStatusConnected(ctx context.Context, msg application.ConnectMsg) error
	DeviceStatusDisConnected(ctx context.Context, msg application.ConnectMsg) error
	//应用事件通知-设备物模型属性上报通知
	DeviceThingPropertyReport(ctx context.Context, msg application.PropertyReport) error
	DeviceThingActionReport(ctx context.Context, msg application.ActionReport) error
	DeviceThingEventReport(ctx context.Context, msg application.EventReport) error
}

func NewPubApp

func NewPubApp(c conf.EventConf) (PubApp, error)

Jump to

Keyboard shortcuts

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