chore: cleanup api definition
This commit is contained in:
parent
b9f7c77dc0
commit
e155594d0b
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue