Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AreaDKWest is for anyone living west of Storebælt AreaDKWest area = "DK1" // AreaDKEast is for anyone living east of Storebælt AreaDKEast area = "DK2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnergiDataService ¶
type EnergiDataService struct {
// contains filtered or unexported fields
}
func (*EnergiDataService) Area ¶
func (e *EnergiDataService) Area(a area)
func (*EnergiDataService) Query ¶
func (e *EnergiDataService) Query() (interface{}, error)
func (*EnergiDataService) Timer ¶
func (e *EnergiDataService) Timer(from, to time.Time)
type Prices ¶
type Prices struct {
Elspotprices []entities.Elspotprice `json:"records"`
}
Prices is the data returned from energidataservice, containing raw power prices
func (Prices) SpotPrices ¶
func (p Prices) SpotPrices() []entities.Elspotprice
Click to show internal directories.
Click to hide internal directories.