package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ActionType struct {
Name string `yaml:"name"`
Watch string `yaml:"watch"`
Path string `yaml:"path"`
Trigger string `yaml:"trigger"`
Action []struct {
Topic string `yaml:"topic"`
Message string `yaml:"message"`
} `yaml:"action"`
Enabled *bool `yaml:"enabled,omitempty"`
}
type ConfigType struct {
HealthCheckListener *string `yaml:"health_check,omitempty"`
Verbose *bool `yaml:"verbose,omitempty"`
MQTT *MQTTConfig `yaml:"mqtt"`
Actions []ActionType `yaml:"actions"`
}
type MQTTConfig struct {
Broker string `yaml:"broker"`
Port string `yaml:"port"`
Protocol string `yaml:"protocol"`
User string `yaml:"user"`
Password string `yaml:"password"`
ClientID string `yaml:"client_id"`
QoS byte `yaml:"qos"`
Retain bool `yaml:"retain"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.