listener

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factories = []func(config config.Config, control Controller) (topic string, listener Listener, err error){}

Functions

This section is empty.

Types

type Controller

type Controller interface {
	LogHub(log model.HubLog) error
	LogDevice(log model.DeviceLog) error
	UpdateDevice(command model.DeviceCommand) error
	UpdateHub(command model.HubCommand) error
}

type Listener

type Listener func(msg []byte) (err error)

func DeviceLogListenerFactory

func DeviceLogListenerFactory(config config.Config, control Controller) (topic string, listener Listener, err error)

func DevicesListenerFactory

func DevicesListenerFactory(config config.Config, control Controller) (topic string, listener Listener, err error)

func HubLogListenerFactory

func HubLogListenerFactory(config config.Config, control Controller) (topic string, listener Listener, err error)

func HubsListenerFactory

func HubsListenerFactory(config config.Config, control Controller) (topic string, listener Listener, err error)

Jump to

Keyboard shortcuts

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