ambient-local-exporter/pkg/provider/provider.go

16 lines
384 B
Go
Raw Normal View History

2025-01-04 22:51:55 +00:00
package provider
import (
"context"
"net/http"
"gitea.libretechconsulting.com/rmcguire/ambient-weather-local-exporter/pkg/weather"
)
// Simple interface used for converting Wunderground and
// Ambient Weather Network HTTP requests to a stable struct
type AmbientProvider interface {
ReqToWeather(context.Context, *http.Request) (*weather.WeatherUpdate, error)
Name() string
}