evcc-io/api/tariff.go
2025-02-12 09:49:31 +01:00

26 lines
495 B
Go

package api
//go:generate go tool enumer -type TariffType -trimprefix TariffType -transform=lower -text
//go:generate go tool enumer -type TariffUsage -trimprefix TariffUsage -transform=lower
type TariffType int
const (
_ TariffType = iota
TariffTypePriceStatic
TariffTypePriceDynamic
TariffTypePriceForecast
TariffTypeCo2
TariffTypeSolar
)
type TariffUsage int
const (
_ TariffUsage = iota
TariffUsageCo2
TariffUsageFeedIn
TariffUsageGrid
TariffUsagePlanner
TariffUsageSolar
)