Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elspotprice ¶
type Elspotprice struct { HourUTC pTime `json:"HourUTC"` HourDK pTime `json:"HourDK"` PriceArea string `json:"PriceArea"` SpotPriceDKK *float64 `json:"SpotPriceDKK"` DKKEstimated bool `json:"dkk_estimated"` EstimatedRate float64 `json:"rate,omitempty"` SpotPriceEUR float64 `json:"SpotPriceEUR"` Typename string `json:"__typename"` }
Elspotprice is the raw per price data
type FullPrice ¶
type FullPrice struct { Taxes []Tax `json:"taxes"` ValidFrom time.Time `json:"valid_from"` ValidTo time.Time `json:"valid_to"` Estimated bool `json:"dkk_estimated"` EstimatedRate float64 `json:"rate,omitempty"` RawPrice float64 `json:"spot_price_ex_vat"` TaxesSubTotal float64 `json:"taxes_subtotal_ex_vat"` Total float64 `json:"total_ex_vat"` TotalIncVAT float64 `json:"total_inc_vat"` }
FullPrice is the final price per kWh, when all taxes are taken into account.
type Tariff ¶
type Tariff struct { TariffId interface{} `json:"tariffId"` Name string `json:"name"` Description string `json:"description"` Owner string `json:"owner"` PeriodType string `json:"periodType"` ValidFromDate string `json:"validFromDate"` ValidToDate *string `json:"validToDate"` Price float64 `json:"price"` }
Tariff is a flattened version of a tariff from eloverblik.dk
type TariffIndex ¶
func (TariffIndex) AtPos ¶
func (t TariffIndex) AtPos(p int) Tariffs
AtPos returns the Tariff at index p, if it exists. Otherwise, returns from the default position (0)
type TariffMetadata ¶
TariffMetadata contains information needed to properly duplicate data when default positions needs repeating alongside position specific data
Click to show internal directories.
Click to hide internal directories.