Weather service proxy support
All checks were successful
Build and Publish / release (push) Successful in 3m51s
All checks were successful
Build and Publish / release (push) Successful in 3m51s
This commit is contained in:
5
main.go
5
main.go
@@ -10,6 +10,7 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"gitea.libretechconsulting.com/rmcguire/ambient-weather-local-exporter/pkg/ambient"
|
||||
"gitea.libretechconsulting.com/rmcguire/ambient-weather-local-exporter/pkg/ambient/config"
|
||||
)
|
||||
|
||||
const defaultMetricPrefix = "weather"
|
||||
@@ -19,9 +20,9 @@ func main() {
|
||||
defer cncl()
|
||||
|
||||
// Config type for app, which implements go-app/config.AppConfig
|
||||
awConfig := &ambient.AmbientLocalExporterConfig{
|
||||
awConfig := &config.AmbientLocalExporterConfig{
|
||||
MetricPrefix: defaultMetricPrefix,
|
||||
WeatherStations: make([]ambient.WeatherStation, 0),
|
||||
WeatherStations: make([]config.WeatherStation, 0),
|
||||
}
|
||||
|
||||
// Read config and environment, set up logging, load up
|
||||
|
Reference in New Issue
Block a user