pubApp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 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

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 NatsJsClient

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

func (*NatsJsClient) DeviceStatusConnected

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

func (*NatsJsClient) DeviceStatusDisConnected

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

func (*NatsJsClient) DeviceThingActionReport

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

func (*NatsJsClient) DeviceThingEventReport

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

func (*NatsJsClient) DeviceThingPropertyReport

func (n *NatsJsClient) 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