Documentation ¶
Index ¶
- Variables
- func CreateAccount(c *gin.Context, db *clover.DB)
- func CreateEvent(c *gin.Context, db *clover.DB)
- func CreateHelp(c *gin.Context, db *clover.DB)
- func DeleteEvent(c *gin.Context, db *clover.DB)
- func DeleteHelp(c *gin.Context, db *clover.DB)
- func EventDetails(c *gin.Context, db *clover.DB)
- func EventSubscribe(c *gin.Context, db *clover.DB)
- func EventTablePage(c *gin.Context, db *clover.DB)
- func EventsPage(c *gin.Context, db *clover.DB)
- func ExportHelps(c *gin.Context, db *clover.DB)
- func GetCreateAccount(c *gin.Context)
- func GetEventCategoryKeys(c *gin.Context) []string
- func GetEventDataFromContext(c *gin.Context, db *clover.DB) event.Event
- func GetEventDetailAboutToBeModified(c *gin.Context, db *clover.DB)
- func GetEventDetailsAboutToBeDelete(c *gin.Context, db *clover.DB)
- func GetHelpCategoryKeys(c *gin.Context) []string
- func GetHelpDetailAboutToBeModified(c *gin.Context, db *clover.DB)
- func GetHelpDetailsAboutToBeDelete(c *gin.Context, db *clover.DB)
- func GetHelpFromContext(c *gin.Context, db *clover.DB) help.Help
- func GetLogin(c *gin.Context)
- func GetManagedPost(c *gin.Context, db *clover.DB)
- func GetPannesOverlay(c *gin.Context, db *clover.DB)
- func GridPage(c *gin.Context, db *clover.DB)
- func GridSearch(c *gin.Context, db *clover.DB)
- func HelpDetails(c *gin.Context, db *clover.DB)
- func HelpPage(c *gin.Context, db *clover.DB)
- func HelpTablePage(c *gin.Context, db *clover.DB)
- func Login(c *gin.Context, db *clover.DB)
- func Logout(c *gin.Context)
- func MapJson(c *gin.Context, db *clover.DB)
- func MapPage(c *gin.Context, db *clover.DB)
- func PostCreateEventComment(c *gin.Context, db *clover.DB)
- func PostCreateHelpComment(c *gin.Context, db *clover.DB)
- func SearchEventTable(c *gin.Context, db *clover.DB)
- func SubmitHelpsToDC(c *gin.Context, db *clover.DB, helpIds []string)
- func UpdateAccount(c *gin.Context, db *clover.DB)
- func UpdateEvent(c *gin.Context, db *clover.DB)
- func UpdateHelp(c *gin.Context, db *clover.DB)
- type GeoJSON
- type GeoJSONPair
- type GeoJSONProperties
- type NameValue
- type Style
Constants ¶
This section is empty.
Variables ¶
View Source
var CategoryStyles = map[string]Style{
"Vent": {
Color: "blue",
IconSize: 0,
Icon: "air",
},
"Vent violent": {
Color: "blue",
IconSize: 0,
Icon: "air",
},
"Pluie": {
Color: "blue",
IconSize: 0,
Icon: "rainy",
},
"Neige": {
Color: "blue",
IconSize: 0,
Icon: "ac_unit",
},
"Tempête hivernale": {
Color: "red",
IconSize: 2,
Icon: "severe_cold",
},
"Onde de tempête": {
Color: "yellow",
IconSize: 1,
Icon: "weather_mix",
},
"Inondation": {
Color: "red",
IconSize: 2,
Icon: "flood",
},
"Panne d'électricité": {
Color: "yellow",
IconSize: 1,
Icon: "electric_bolt",
},
"Mouvement de terrain": {
Color: "red",
IconSize: 2,
Icon: "landslide",
},
"Autre": {
Color: "red",
IconSize: 1,
Icon: "warning",
},
"Orage violent": {
Color: "red",
IconSize: 2,
Icon: "thunderstorm",
},
"Fermeture de route": {
Color: "yellow",
IconSize: 0,
Icon: "traffic",
},
"Matières dangereuses": {
Color: "red",
IconSize: 2,
Icon: "skull",
},
"Panne de télécommunication": {
Color: "yellow",
IconSize: 1,
Icon: "wifi",
},
"Feu de forêt": {
Color: "red",
IconSize: 2,
Icon: "local_fire_department",
},
"Érosion": {
Color: "yellow",
IconSize: 0,
Icon: "landslide",
},
"Tremblement de terre": {
Color: "red",
IconSize: 2,
Icon: "earthquake",
},
"Alimentation publique en eau potable": {
Color: "yellow",
IconSize: 1,
Icon: "water",
},
"Incendie industriel": {
Color: "yellow",
IconSize: 1,
Icon: "local_fire_department",
},
"Pluie verglaçante": {
Color: "blue",
IconSize: 0,
Icon: "weather_mix",
},
"Fermeture de pont": {
Color: "yellow",
IconSize: 0,
Icon: "traffic",
},
"Accident de voiture": {
Color: "yellow",
IconSize: 0,
Icon: "traffic",
},
"Écrasement d'avion": {
Color: "yellow",
IconSize: 0,
Icon: "flight_land",
},
"Risque d'explosion": {
Color: "red",
IconSize: 2,
Icon: "destruction",
},
"Débordement de barrage": {
Color: "red",
IconSize: 2,
Icon: "flood",
},
"Feu urbain": {
Color: "yellow",
IconSize: 1,
Icon: "local_fire_department",
},
"Accident maritime": {
Color: "yellow",
IconSize: 0,
Icon: "traffic",
},
"Effondrement de structure": {
Color: "red",
IconSize: 2,
Icon: "traffic",
},
"Tornade": {
Color: "red",
IconSize: 2,
Icon: "tornado",
},
"Crise civile": {
Color: "red",
IconSize: 2,
Icon: "emergency_home",
},
"Risque de gaz toxiques": {
Color: "red",
IconSize: 2,
Icon: "emergency_home",
},
"Accident ferroviaire": {
Color: "yellow",
IconSize: 0,
Icon: "traffic",
},
"Ouragan": {
Color: "red",
IconSize: 2,
Icon: "cyclone",
},
"Qualité de l'air": {
Color: "yellow",
IconSize: 1,
Icon: "airwave",
},
"Santé": {
Color: "yellow",
IconSize: 1,
Icon: "medical_services",
},
"Vague de chaleur": {
Color: "yellow",
IconSize: 1,
Icon: "sunny",
},
"Vague de froid": {
Color: "yellow",
IconSize: 1,
Icon: "ac_unit",
},
"Avalanche": {
Color: "red",
IconSize: 2,
Icon: "landslide",
},
"Maladie infectieuse": {
Color: "red",
IconSize: 2,
Icon: "coronavirus",
},
}
Styling with google material icons using list at all_material_icons.txt
View Source
var HelpCategoryStyles = map[string]Style{
"Hébergement": {
Color: "green",
IconSize: 2,
Icon: "home",
},
"Nourriture": {
Color: "green",
IconSize: 2,
Icon: "food_bank",
},
"Transport": {
Color: "green",
IconSize: 2,
Icon: "directions",
},
"Coup de main": {
Color: "green",
IconSize: 2,
Icon: "diversity_3",
},
"Renforcement": {
Color: "green",
IconSize: 2,
Icon: "healing",
},
}
Functions ¶
func CreateAccount ¶
func CreateEvent ¶
func CreateHelp ¶
func DeleteEvent ¶
func DeleteHelp ¶
func EventDetails ¶
func EventSubscribe ¶
func EventTablePage ¶
func EventsPage ¶
func ExportHelps ¶
func GetCreateAccount ¶
func GetEventCategoryKeys ¶
func GetEventDataFromContext ¶
func GetHelpCategoryKeys ¶
func GetManagedPost ¶
func GetPannesOverlay ¶
func GridSearch ¶
func HelpDetails ¶
func HelpTablePage ¶
func PostCreateEventComment ¶
func PostCreateHelpComment ¶
func SearchEventTable ¶
func SubmitHelpsToDC ¶
func UpdateAccount ¶
func UpdateEvent ¶
func UpdateHelp ¶
Types ¶
type GeoJSON ¶
type GeoJSON struct { Type string `json:"type"` Geometry mapobject.Geometry `json:"geometry"` Properties GeoJSONProperties `json:"properties"` }
type GeoJSONPair ¶
type GeoJSONProperties ¶
Click to show internal directories.
Click to hide internal directories.