Documentation
¶
Overview ¶
This provides a shim between HTTP GET requests sent by ambient devices, and the providers that may be configured (awn, wunderground)
Index ¶
- type AmbientWeather
- func (aw *AmbientWeather) GetAWNHandlerFunc(appCtx context.Context) func(http.ResponseWriter, *http.Request)
- func (aw *AmbientWeather) GetWundergroundHandlerFunc(appCtx context.Context) func(http.ResponseWriter, *http.Request)
- func (aw *AmbientWeather) Init() *AmbientWeather
- func (aw *AmbientWeather) InitMetrics()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmbientWeather ¶
type AmbientWeather struct {
// contains filtered or unexported fields
}
func New ¶
func New(appCtx context.Context, awConfig *config.AmbientLocalExporterConfig) *AmbientWeather
func (*AmbientWeather) GetAWNHandlerFunc ¶
func (aw *AmbientWeather) GetAWNHandlerFunc(appCtx context.Context) func(http.ResponseWriter, *http.Request)
func (*AmbientWeather) GetWundergroundHandlerFunc ¶
func (aw *AmbientWeather) GetWundergroundHandlerFunc(appCtx context.Context) func(http.ResponseWriter, *http.Request)
func (*AmbientWeather) Init ¶
func (aw *AmbientWeather) Init() *AmbientWeather
Initialize with defaults, set logger from context
func (*AmbientWeather) InitMetrics ¶
func (aw *AmbientWeather) InitMetrics()
Directories
¶
Path | Synopsis |
---|---|
This package exists purely to override the net.Listener used by the application's http server.
|
This package exists purely to override the net.Listener used by the application's http server. |
Click to show internal directories.
Click to hide internal directories.