From e155594d0bce821c0fb05ceab425fc565bfdce04 Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 10 Aug 2022 17:20:29 +0200 Subject: [PATCH] chore: cleanup api definition --- api/api.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/api.go b/api/api.go index ed5ee9756..fedc64031 100644 --- a/api/api.go +++ b/api/api.go @@ -8,7 +8,6 @@ import ( "time" "github.com/fatih/structs" - "github.com/gorilla/mux" ) //go:generate mockgen -package mock -destination ../mock/mock_api.go github.com/evcc-io/evcc/api Charger,ChargeState,ChargePhases,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery @@ -184,15 +183,12 @@ type Resurrector interface { WakeUp() error } +// Tariff is the grid tariff type Tariff interface { IsCheap() (bool, error) CurrentPrice() (float64, error) // EUR/kWh, CHF/kWh, ... } -type WebController interface { - WebControl(*mux.Router) -} - // ProviderLogin is the ability to provide OAuth authentication through the ui type ProviderLogin interface { SetCallbackParams(baseURL, redirectURL string, authenticated chan<- bool)