Metric implementation
This commit is contained in:
7
main.go
7
main.go
@@ -18,17 +18,20 @@ func main() {
|
||||
|
||||
ctx = app.MustSetupConfigAndLogging(ctx)
|
||||
|
||||
aw := ambient.New(ctx)
|
||||
aw.MustInit()
|
||||
|
||||
awApp := app.App{
|
||||
AppContext: ctx,
|
||||
HTTP: &app.AppHTTP{
|
||||
Funcs: []srv.HTTPFunc{
|
||||
{
|
||||
Path: "/weatherstation/updateweatherstation.php",
|
||||
HandlerFunc: ambient.GetWundergroundHandlerFunc(ctx),
|
||||
HandlerFunc: aw.GetWundergroundHandlerFunc(ctx),
|
||||
},
|
||||
{
|
||||
Path: "/data/report",
|
||||
HandlerFunc: ambient.GetAWNHandlerFunc(ctx),
|
||||
HandlerFunc: aw.GetAWNHandlerFunc(ctx),
|
||||
},
|
||||
},
|
||||
HealthChecks: []srv.HealthCheckFunc{
|
||||
|
Reference in New Issue
Block a user