package
Version:
v0.0.0-...-5182124
Opens a new window with list of versions in this module.
Published: Dec 28, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Broker struct {
URL string `envconfig:"MQTT_URL" default:"mqtt://10.76.0.101:1883"`
Topic string `envconfig:"MQTT_TOPIC" default:"shellypro3em-3ce90e7025c8/events/rpc"`
}
type Config struct {
LogLevel slog.Level `envconfig:"LOG_LEVEL" default:"INFO"`
MetricsAddr string `envconfig:"METRICS_ADDRESS" default:":8080"`
Database Database
Broker Broker
}
type Database struct {
URL string `envconfig:"DB_URL" default:"postgresql://postgres:postgres@localhost:5432/postgres"`
MaxOpenConns int `envconfig:"DB_MAX_OPEN_CONNS" default:"16"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.