Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Good = Index{ Name: "Good", Color: color.RGBA{0, 228, 0, 255}, Low: goodBreakpointLow, High: goodBreakpointHigh, } Moderate = Index{ Name: "Moderate", Color: color.RGBA{255, 255, 0, 255}, Low: moderateBreakpointLow, High: moderateBreakpointHigh, } Sensitive = Index{ Name: "Unhealthy for Sensitive Groups", Color: color.RGBA{255, 126, 0, 255}, Low: sensitiveBreakpointLow, High: sensitiveBreakpointHigh, } Unhealthy = Index{ Name: "Unhealthy", Color: color.RGBA{255, 0, 0, 255}, Low: unhealthyBreakpointLow, High: unhealthyBreakpointHigh, } VeryUnhealthy = Index{ Name: "Very Unhealthy", Color: color.RGBA{153, 0, 76, 255}, Low: veryUnhealthyBreakpointLow, High: veryUnhealthyBreakpointHigh, } Hazardous = Index{ Name: "Hazardous", Color: color.RGBA{125, 0, 35, 255}, Low: hazardousBreakpointLow, High: hazardousBreakpointHigh, } VeryHazardous = Index{ Name: "Hazardous", Color: color.RGBA{125, 0, 35, 255}, Low: veryHazardousBreakpointLow, High: veryHazardousBreakpointHigh, } )
Default indices for all EPA AQI levels, each containing their level's respective metadata.
Functions ¶
This section is empty.
Types ¶
type CO ¶
type CO struct {
Concentration float64
}
CO contains concentration measurements for carbon monoxide in air in parts per million.
type Index ¶
Index represents the different levels of AQI (i.e good, moderate, etc.) with associated metadata.
type Measurement ¶
type Measurement interface {
// contains filtered or unexported methods
}
Measurement type are the functions require to calculate the AQI value.
type NO2 ¶
type NO2 struct {
Concentration float64
}
NO2 contains concentration measurements for nitrogen dioxide in air in parts per billion.
type PM10 ¶
type PM10 struct {
Concentration float64
}
PM10 contains concentration measurements for PM10 particulates in air in micrograms per meter cubed.
type PM25 ¶
type PM25 struct {
Concentration float64
}
PM25 contains concentration measurements for PM2.5 particulates in air in micrograms per meter cubed.
Click to show internal directories.
Click to hide internal directories.