Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdministrationName ¶
GetAdministrationName return the administration name associated to the "codice iPA" asssociated. TODO: load this mappings in memory instead of scanning the file every time
func UpdateFromIndicePA ¶
UpdateFromIndicePA downloads the pec.txt file and loads it into Elasticsearch.
func UpdateFromIndicePAIfNeeded ¶
UpdateFromIndicePAIfNeeded downloads the amministrazioni.txt file if it's older than 20 days and loads it into Elasticsearch.
Types ¶
type Amministrazione ¶
type Amministrazione struct { CodAmm string DesAmm string Comune string NomeResp string CognResp string Cap string Provincia string Regione string SitoIstituzionale string Indirizzo string TitoloResp string TipologiaIstat string TipologiaAmm string Acronimo string CFValidato string CF string Mail1 string TipoMail1 string Mail2 string TipoMail2 string Mail3 string TipoMail3 string Mail4 string TipoMail4 string Mail5 string TipoMail5 string URLFacebook string URLTwitter string URLGoogleplus string URLYoutube string LivAccessibili string }
Amministrazione is an Administration from amministrazoni.txt Retrieved from: http://www.indicepa.gov.it/documentale/n-opendata.php
Click to show internal directories.
Click to hide internal directories.