server

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartIntegrations

func StartIntegrations(conf config.MainConfigT, mqtt *mqtt.MQTT)

StartIntegrations asks each enabled Integration to configure itself, then starts them.

Types

type Integration

type Integration interface {
	// LoadConfig func should simply load any config (TOML) files for this Integration
	LoadConfig(string) error

	// Start func begins running the Integration GoRoutines and should return quickly
	Start(*mqtt.MQTT)

	// Stop terminates the Integration and all Goroutines it contains
	Stop()
}

The Integration interface defines the minimal set of methods that an Integration must provide

Jump to

Keyboard shortcuts

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