Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
General struct {
LogLevel int `mapstructure:"log_level"`
LogToSyslog bool `mapstructure:"log_to_syslog"`
} `mapstructure:"general"`
Backend struct {
Type string `mapstructure:"type"`
BssciV1 struct {
Bind string `mapstructure:"bind"`
TLSCert string `mapstructure:"tls_cert"`
TLSKey string `mapstructure:"tls_key"`
CACert string `mapstructure:"ca_cert"`
PingInterval time.Duration `mapstructure:"ping_interval"`
StatsInterval time.Duration `mapstructure:"stats_interval"`
KeepAlivePeriod time.Duration `mapstructure:"keep_alive_period"`
} `mapstructure:"bssci_v1"`
} `mapstructure:"backend"`
Integration struct {
Marshaler string `mapstructure:"marshaler"`
MQTTV3 struct {
StateRetained bool `mapstructure:"state_retained"`
KeepAlive time.Duration `mapstructure:"keep_alive"`
MaxReconnectInterval time.Duration `mapstructure:"max_reconnect_interval"`
MaxTokenWait time.Duration `mapstructure:"max_token_wait"`
TerminateOnConnectError bool `mapstructure:"terminate_on_connect_error"`
EventTopicTemplate string `mapstructure:"event_topic_template"`
CommandTopicTemplate string `mapstructure:"command_topic_template"`
ResponseTopicTemplate string `mapstructure:"response_topic_template"`
StateTopicTemplate string `mapstructure:"state_topic_template"`
Auth struct {
Type string `mapstructure:"type"`
Generic struct {
Servers []string `mapstructure:"servers"`
Username string `mapstructure:"username"`
Password string `mapstrucure:"password"`
CACert string `mapstructure:"ca_cert"`
TLSCert string `mapstructure:"tls_cert"`
TLSKey string `mapstructure:"tls_key"`
QOS uint8 `mapstructure:"qos"`
CleanSession bool `mapstructure:"clean_session"`
ClientID string `mapstructure:"client_id"`
} `mapstructure:"generic"`
} `mapstructure:"auth"`
} `mapstructure:"mqtt_v3"`
} `mapstructure:"integration"`
Metrics struct {
Prometheus struct {
EndpointEnabled bool `mapstructure:"endpoint_enabled"`
Bind string `mapstructure:"bind"`
} `mapstructure:"prometheus"`
} `mapstructure:"metrics"`
}
Config defines the configuration structure.
var C Config
C holds the global configuration.
Click to show internal directories.
Click to hide internal directories.