Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloverly ¶
type Cloverly struct {
// contains filtered or unexported fields
}
func (*Cloverly) CreateCarbonEstimate ¶
Estimate creates a Cloverly estimate for the given volume of carbon
type CloverlyOpts ¶
type CloverlyOpts struct { }
type Response ¶
type Response struct { Error string `json:"error"` Slug string `json:"slug"` Environment string `json:"environment"` State string `json:"state"` MicroRecCount int `json:"micro_rec_count"` MicroUnits int `json:"micro_units"` TotalCostInUSDCents int `json:"total_cost_in_usd_cents"` EstimatedAt string `json:"estimated_at"` EquivalentCarbonInKG float64 `json:"equivalent_carbon_in_kg"` ElectricityInKWH float64 `json:"electricity_in_kwh"` RecCostInUSDCents int `json:"rec_cost_in_usd_cents"` TransactionCostInUSDCents int `json:"transaction_cost_in_usd_cents"` PrettyURL string `json:"pretty_url"` Offset struct { Slug string Name string City string Province string Country string OffsetType string `json:"offset_type"` TotalCapacity string `json:"total_capacity"` LatLong struct { X float64 Y float64 } `json:"latlng"` TechnicalDetails string `json:"technical_details"` AvailableCarbonInKG float64 `json:"available_carbon_in_kg"` PrettyURL string `json:"pretty_url"` } `json:"offset"` RenewableEnergyCertificate struct { Slug string Name string City string Province string Country string RenewableType string `json:"renewable_type"` TotalCapacity string `json:"total_capacity"` LatLong struct { X float64 Y float64 } `json:"latlng"` TechnicalDetails string `json:"technical_details"` Deprecated string } `json:"renewable_energy_certificate"` }
Response matches the schema of an estimate or purchase response from Cloverly
Click to show internal directories.
Click to hide internal directories.