Documentation ¶
Index ¶
- func GetAllFromIpfs(actorType string, actorID int) (map[string]interface{}, error)
- func GetFromIpfs(reportType string, actorType string, actorID int) (map[string]interface{}, error)
- func GetFromIpfsEarthData() (map[string]Earth, error)
- func IpfsCommitData(data interface{}) (string, error)
- type Adaptation
- type AdaptationChild
- type Earth
- type Emissions
- type Mitigation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFromIpfs ¶
func GetFromIpfs ¶
func GetFromIpfsEarthData ¶
func IpfsCommitData ¶
Commits data to IPFS and returns IPFS hash
Types ¶
type Adaptation ¶
type Adaptation struct { }
type AdaptationChild ¶
type AdaptationChild struct { }
type Emissions ¶
type Emissions struct { // Meta-data UserID int EntityType string Year int DateReported string TotalScope1CO2e int TotalScope2CO2e int TotalScope3CO2e int // Where is the report and its data from? // (options: internally conducted report, consulting group, etc.) Source string // what methodology was used in the reporting and // verification of the emissions data? Methodology string // Emissions data (by asset) // Country children: regions // Region children: companies & cities // Company children: assets ByChild []struct { ChildID int ChildName string Scope1CO2e float64 Scope2CO2e float64 Scope3CO2e float64 } }
type Mitigation ¶
type Mitigation struct { // Meta-data UserID int EntityType string Year int // Where is the report and its data from? // (options: internally conducted report, consulting group, etc.) Source string // what methodology was used in the reporting and // verification of the mitigation data? Methodology string // Emissions data (by asset) // Country children: regions // Region children: companies & cities // Company children: assets ByChild []struct { ChildID int ChildName string CarbonOffset float64 EnergySaved float64 EnergyGen float64 // Options: // - Renewable energy // - Energy efficiency // - Agriculture, Forestry & Other // - Carbon sequestrations Type string // Options: // - Reduction of GHG sources // - Enhancement of GHG sinks // - Both Category string } }
Click to show internal directories.
Click to hide internal directories.