Documentation ¶
Index ¶
Constants ¶
View Source
const ProductURI = "https://api.octopus.energy/v1/products/%s/"
ProductURI defines the location of the tariff information page. Substitute %s with tariff name.
View Source
const RatesURI = ProductURI + "electricity-tariffs/%s/standard-unit-rates/"
RatesURI defines the location of the full tariff rates page, including speculation. Substitute first %s with product code, second with tariff code.
Variables ¶
This section is empty.
Functions ¶
func ConstructRatesAPIFromProductAndRegionCode ¶
ConstructRatesAPIFromProductAndRegionCode returns a validly formatted, fully qualified URI to the unit rate information derived from the given product code and region.
func ConstructRatesAPIFromTariffCode ¶
ConstructRatesAPIFromTariffCode returns a validly formatted, fully qualified URI to the unit rate information derived from the given Tariff Code.
Types ¶
Click to show internal directories.
Click to hide internal directories.