Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GatewayPolling *GatewayPolling `yaml:"gateway_polling,omitempty"`
MQTTListener *MQTTListener `yaml:"mqtt_listener,omitempty"`
HTTPListener *HTTPListener `yaml:"http_listener,omitempty"`
Processing *Processing `yaml:"processing,omitempty"`
InfluxDBPublisher *InfluxDBPublisher `yaml:"influxdb_publisher,omitempty"`
InfluxDB3Publisher *InfluxDB3Publisher `yaml:"influxdb3_publisher,omitempty"`
Prometheus *Prometheus `yaml:"prometheus,omitempty"`
MQTTPublisher *MQTTPublisher `yaml:"mqtt_publisher,omitempty"`
TagNames map[string]string `yaml:"tag_names,omitempty"`
Logging Logging `yaml:"logging"`
Debug bool `yaml:"debug"`
}
type GatewayPolling ¶
type HTTPListener ¶ added in v0.1.4
type InfluxDB3Publisher ¶ added in v0.2.1
type InfluxDB3Publisher struct {
Enabled *bool `yaml:"enabled,omitempty"`
MinimumInterval time.Duration `yaml:"minimum_interval,omitempty"`
Url string `yaml:"url"`
AuthToken string `yaml:"auth_token"`
Database string `yaml:"database"`
Measurement string `yaml:"measurement"`
AdditionalTags map[string]string `yaml:"additional_tags,omitempty"`
}
type InfluxDBPublisher ¶
type InfluxDBPublisher struct {
Enabled *bool `yaml:"enabled,omitempty"`
MinimumInterval time.Duration `yaml:"minimum_interval,omitempty"`
Url string `yaml:"url"`
AuthToken string `yaml:"auth_token"`
Org string `yaml:"org"`
Bucket string `yaml:"bucket"`
Measurement string `yaml:"measurement"`
AdditionalTags map[string]string `yaml:"additional_tags,omitempty"`
}
type MQTTListener ¶
type MQTTListener struct {
Enabled *bool `yaml:"enabled,omitempty"`
BrokerUrl string `yaml:"broker_url"`
BrokerAddress string `yaml:"broker_address"`
BrokerPort int `yaml:"broker_port"`
ClientID string `yaml:"client_id"`
Username string `yaml:"username"`
Password string `yaml:"password"`
TopicPrefix string `yaml:"topic_prefix"`
LWTTopic string `yaml:"lwt_topic"`
LWTOnlinePayload string `yaml:"lwt_online_payload"`
LWTOfflinePayload string `yaml:"lwt_offline_payload"`
}
type MQTTPublisher ¶
type MQTTPublisher struct {
Enabled *bool `yaml:"enabled,omitempty"`
MinimumInterval time.Duration `yaml:"minimum_interval,omitempty"`
BrokerUrl string `yaml:"broker_url"`
BrokerAddress string `yaml:"broker_address"`
BrokerPort int `yaml:"broker_port"`
ClientID string `yaml:"client_id"`
Username string `yaml:"username"`
Password string `yaml:"password"`
TopicPrefix string `yaml:"topic_prefix"`
PublishRaw bool `yaml:"publish_raw"`
RetainMessages bool `yaml:"retain_messages"`
HomeassistantDiscoveryPrefix string `yaml:"homeassistant_discovery_prefix,omitempty"`
LWTTopic string `yaml:"lwt_topic"`
LWTOnlinePayload string `yaml:"lwt_online_payload"`
LWTOfflinePayload string `yaml:"lwt_offline_payload"`
}
type Processing ¶
type Prometheus ¶
Click to show internal directories.
Click to hide internal directories.