Rename SoC to Soc and LoadPoint to Loadpoint (#5549)
This commit is contained in:
parent
54f204c0f8
commit
03d6d1418a
165 changed files with 1054 additions and 1032 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/evcc-io/evcc/core/db"
|
||||
)
|
||||
|
||||
func (lp *LoadPoint) chargeMeterTotal() float64 {
|
||||
func (lp *Loadpoint) chargeMeterTotal() float64 {
|
||||
m, ok := lp.chargeMeter.(api.MeterEnergy)
|
||||
if !ok {
|
||||
return 0
|
||||
|
|
@ -24,7 +24,7 @@ func (lp *LoadPoint) chargeMeterTotal() float64 {
|
|||
|
||||
// createSession creates a charging session. The created timestamp is empty until set by evChargeStartHandler.
|
||||
// The session is not persisted yet. That will only happen when stopSession is called.
|
||||
func (lp *LoadPoint) createSession() {
|
||||
func (lp *Loadpoint) createSession() {
|
||||
// test guard
|
||||
if lp.db == nil || lp.session != nil {
|
||||
return
|
||||
|
|
@ -44,7 +44,7 @@ func (lp *LoadPoint) createSession() {
|
|||
}
|
||||
|
||||
// stopSession ends a charging session segment and persists the session.
|
||||
func (lp *LoadPoint) stopSession() {
|
||||
func (lp *Loadpoint) stopSession() {
|
||||
// test guard
|
||||
if lp.db == nil || lp.session == nil {
|
||||
return
|
||||
|
|
@ -68,7 +68,7 @@ func (lp *LoadPoint) stopSession() {
|
|||
type sessionOption func(*db.Session)
|
||||
|
||||
// updateSession updates any parameter of a charging session and persists the session.
|
||||
func (lp *LoadPoint) updateSession(opts ...sessionOption) {
|
||||
func (lp *Loadpoint) updateSession(opts ...sessionOption) {
|
||||
// test guard
|
||||
if lp.db == nil || lp.session == nil {
|
||||
return
|
||||
|
|
@ -84,7 +84,7 @@ func (lp *LoadPoint) updateSession(opts ...sessionOption) {
|
|||
}
|
||||
|
||||
// clearSession clears the charging session without persisting it.
|
||||
func (lp *LoadPoint) clearSession() {
|
||||
func (lp *Loadpoint) clearSession() {
|
||||
// test guard
|
||||
if lp.db == nil {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue