17 lines
433 B
Go
Raw Normal View History

2025-01-04 17:51:55 -05:00
package provider
import (
"context"
"net/http"
2025-03-06 17:20:02 -05:00
"gitea.libretechconsulting.com/rmcguire/ambient-local-exporter/pkg/weather"
2025-01-04 17:51:55 -05:00
)
// 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)
2025-01-12 15:30:37 -05:00
ProxyReq(context.Context, *weather.WeatherUpdate) error
2025-01-04 17:51:55 -05:00
Name() string
}