ipa

package
Version: v0.0.0-...-703ab35 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL