controller

package
v0.0.0-...-ecfd6b6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(conf MqttConf, ctx context.Context, logl int, wg *sync.WaitGroup) *Controller

NewController initializes and returns a new instance of Controller with the given MQTT configuration, context, and log level.

func (*Controller) GetMessage

func (c *Controller) GetMessage() *model.Item

GetMessage retrieves an item from the dispatch channel in the Controller.

func (*Controller) Start

func (c *Controller) Start()

type MqttConf

type MqttConf struct {
	Connection string `yaml:"Connection"`
	Topic      string `yaml:"Topic"`
}

Jump to

Keyboard shortcuts

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