agent

package
v7.2.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppList []App
)

Functions

func ClearApps

func ClearApps(ctx context.Context)

func NewAgent

func NewAgent(id, name string) *agent

func Run

func Run(ctx context.Context)

Types

type AgentUI

type AgentUI interface {
	Run()
	ShowConfiguration()
}

type App

type App interface {
	Name() string
	Configuration() []*mqtt.Msg
	States() []*mqtt.Msg
	Subscriptions() []*mqtt.Subscription
	Run(ctx context.Context, client *mqtt.Client) error
}

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

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