energidataservice

package
v0.0.0-...-c0e0d3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL