Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnitMapping = map[string]*UnitConversion{
"GigawattHour": {
Unit: "KilowattHour",
Scaling: 1000000,
},
}
UnitMapping maps unit schemas with scaling factor.
Functions ¶
func ToLegacyResult ¶ added in v1.33.0
func ToLegacyResult(input *pb.GetTriplesResponse) map[string][]*model.Triple
ToLegacyResult converts pb.GetTriplesResponse to legacy golang struct to make the API response backward compatible.
Types ¶
type UnitConversion ¶
UnitConversion represents conversion sepc for units.
Click to show internal directories.
Click to hide internal directories.