16 lines
384 B
Go
16 lines
384 B
Go
|
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
|
||
|
}
|