Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/evcc-io/evcc
/ ConnectionDuration
Method
ConnectionDuration
api/api.go:127–127 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
125
// ConnectionTimer provides current connection duration
126
type
ConnectionTimer
interface
{
127
ConnectionDuration() (time.Duration, error)
128
}
129
130
// ChargeRater provides charged energy amount in kWh
Callers
2
getStatusChanges
Method · 0.65
TestConnectionDurationDropDetection
Function · 0.65
Implementers
4
MockConnectionTimer
api/mock.go
MockConnectionTimerMockRecorder
api/mock.go
Twc3
charger/twc3.go
PhoenixCharx
charger/phoenix-charx.go
Calls
no outgoing calls
Tested by
1
TestConnectionDurationDropDetection
Function · 0.52