chore: cleanup api definition

This commit is contained in:
andig 2022-08-10 17:20:29 +02:00
parent b9f7c77dc0
commit e155594d0b

View file

@ -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)