evcc-io/core/settings/settings.go
Michael Geers e87f4acd8d
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
Config UI: reset lp smart cost limit (#19892)
2025-03-19 14:18:13 +01:00

19 lines
510 B
Go

package settings
import "time"
type Settings interface {
SetString(key string, val string)
SetInt(key string, val int64)
SetFloat(key string, val float64)
SetFloatPtr(key string, val *float64)
SetTime(key string, val time.Time)
SetJson(key string, val any) error
SetBool(key string, val bool)
String(key string) (string, error)
Int(key string) (int64, error)
Float(key string) (float64, error)
Time(key string) (time.Time, error)
Bool(key string) (bool, error)
Json(key string, res any) error
}