entsoedoc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RFC3339Minute = "2006-01-02T15:04Z07:00"

entso-e doesn't use seconds in their datetime format

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledgement

type Acknowledgement struct {
	XMLName                               xml.Name              `xml:"Acknowledgement_MarketDocument"`
	MRID                                  string                `xml:"mRID"`
	CreatedDateTime                       time.Time             `xml:"createdDateTime"`
	SenderMarketParticipantMRID           MarketParticipantMRID `xml:"sender_MarketParticipant.mRID"`
	SenderMarketParticipantRoleType       string                `xml:"sender_MarketParticipant.marketRole.type"`
	ReceiverMarketParticipantMRID         MarketParticipantMRID `xml:"receiver_MarketParticipant.mRID"`
	ReceiverMarketParticipantRoleType     string                `xml:"receiver_MarketParticipant.marketRole.type"`
	ReceivedMarketDocumentCreatedDateTime time.Time             `xml:"received_MarketDocument.createdDateTime"`
	Reason                                Reason                `xml:"Reason"`
}

func (*Acknowledgement) UnmarshalXML

func (a *Acknowledgement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type DomainMRID

type DomainMRID struct {
	MRID         string `xml:",chardata"`
	CodingScheme string `xml:"codingScheme,attr"`
}

type MarketParticipantMRID

type MarketParticipantMRID struct {
	MRID         string `xml:",chardata"`
	CodingScheme string `xml:"codingScheme,attr"`
}

type Period

type Period struct {
	TimeInterval TimeInterval `xml:"timeInterval"`
	Resolution   string       `xml:"resolution"`
	Points       []Point      `xml:"Point"`
}

type Point

type Point struct {
	Position    int     `xml:"position"`
	PriceAmount float64 `xml:"price.amount"`
}

type Publication

type Publication struct {
	XMLName                           xml.Name              `xml:"Publication_MarketDocument"`
	MRID                              string                `xml:"mRID"`
	RevisionNumber                    string                `xml:"revisionNumber"`
	Type                              string                `xml:"type"`
	SenderMarketParticipantMRID       MarketParticipantMRID `xml:"sender_MarketParticipant.mRID"`
	SenderMarketParticipantRoleType   string                `xml:"sender_MarketParticipant.marketRole.type"`
	ReceiverMarketParticipantMRID     MarketParticipantMRID `xml:"receiver_MarketParticipant.mRID"`
	ReceiverMarketParticipantRoleType string                `xml:"receiver_MarketParticipant.marketRole.type"`
	CreatedDateTime                   string                `xml:"createdDateTime"`
	PeriodTimeInterval                TimeInterval          `xml:"period.timeInterval"`
	TimeSeries                        TimeSeries            `xml:"TimeSeries"`
}

type Reason

type Reason struct {
	Code string `xml:"code"`
	Text string `xml:"text"`
}

type TimeInterval

type TimeInterval struct {
	Start time.Time `xml:"start"`
	End   time.Time `xml:"end"`
}

func (*TimeInterval) UnmarshalXML

func (t *TimeInterval) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type TimeSeries

type TimeSeries struct {
	MRID                        string     `xml:"mRID"`
	AuctionType                 string     `xml:"auction.type"`
	BusinessType                string     `xml:"businessType"`
	InDomainMRID                DomainMRID `xml:"in_Domain.mRID"`
	OutDomainMRID               DomainMRID `xml:"out_Domain.mRID"`
	ContractMarketAgreementType string     `xml:"contract_MarketAgreement.type"`
	CurrencyUnitName            string     `xml:"currency_Unit.name"`
	PriceMeasureUnitName        string     `xml:"price_Measure_Unit.name"`
	CurveType                   string     `xml:"curveType"`
	Period                      Period     `xml:"Period"`
}

Jump to

Keyboard shortcuts

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