package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Dec 27, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
GwMac string `yaml:"gw_mac"`
AllAdvertisements bool `yaml:"all_advertisements"`
HciIndex int `yaml:"hci_index"`
MQTT *MQTT `yaml:"mqtt,omitempty"`
HTTP *HTTP `yaml:"http,omitempty"`
Logging Logging `yaml:"logging"`
Debug bool `yaml:"debug"`
}
type HTTP struct {
Enabled *bool `yaml:"enabled,omitempty"`
URL string `yaml:"url"`
Interval time.Duration `yaml:"interval"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
type Logging struct {
Type string `yaml:"type"`
Level string `yaml:"level"`
Timestamps *bool `yaml:"timestamps,omitempty"`
WithCaller bool `yaml:"with_caller,omitempty"`
}
type MQTT 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,omitempty"`
LWTOnlinePayload string `yaml:"lwt_online_payload"`
LWTOfflinePayload string `yaml:"lwt_offline_payload"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.