ipa

package
v0.0.0-...-36ba309 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdministrationName

func GetAdministrationName(codiceiPA string) string

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

func UpdateFromIndicePA(elasticClient *es.Client) error

UpdateFromIndicePA downloads the pec.txt file and loads it into Elasticsearch.

func UpdateFromIndicePAIfNeeded

func UpdateFromIndicePAIfNeeded(elasticClient *es.Client) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL