pubApp

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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) 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
	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