registry

package
v0.0.0-...-684ac28 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AU_REGISTRATION_URL      = "https://services.casa.gov.au/CSV/acrftreg.zip"
	AU_REGISTRATION_FILENAME = "AU_Registrations.zip"
)
View Source
const (
	CA_REGISTRATION_URL      = "https://wwwapps.tc.gc.ca/Saf-Sec-Sur/2/CCARCS-RIACC/download/ccarcsdb.zip"
	CA_REGISTRATION_FILENAME = "CA_Registrations.zip"
)
View Source
const (
	US_RELEASABLE_AIRCRAFT_CURRENT         = "https://registry.faa.gov/database/ReleasableAircraft.zip"
	US_RELEASABLE_AIRCRAFT_YEARLY_TEMPLATE = "https://registry.faa.gov/database/yearly/ReleasableAircraft.%s.zip"
	US_REGISTRATION_FILENAME               = "US_Registrations.zip"
	YEAR                                   = "year"
)

Variables

This section is empty.

Functions

func CreateReleasableUrl

func CreateReleasableUrl(year string) string

func DownloadFile

func DownloadFile(wg *sync.WaitGroup, dest string, url string, prg *mpb.Progress)

func TrimSpace

func TrimSpace(field string, column string, v interface{}) string

func USMasterKey

func USMasterKey(value interface{}) string

func USRegistrationKey

func USRegistrationKey(value interface{}) string

Types

type AircraftRef

type AircraftRef struct {
	//CODE,MFR,MODEL,TYPE-ACFT,TYPE-ENG,AC-CAT,BUILD-CERT-IND,NO-ENG,NO-SEATS,AC-WEIGHT,SPEED,
	CODE      string `csv:"CODE"`
	MFR       string `csv:"MFR,omitempty"`
	MODEL     string `csv:"MODEL,omitempty"`
	TYPE_ACFT string `csv:"TYPE-ACFT,omitempty"`
}

type Master

type Master struct {
	//N-NUMBER,SERIAL NUMBER,MFR MDL CODE,ENG MFR MDL,YEAR MFR,TYPE REGISTRANT,NAME,STREET,STREET2,CITY,STATE,
	// ZIP CODE,REGION,COUNTY,COUNTRY,LAST ACTION DATE,CERT ISSUE DATE,CERTIFICATION,TYPE AIRCRAFT,TYPE ENGINE,
	// STATUS CODE,MODE S CODE,FRACT OWNER,AIR WORTH DATE,OTHER NAMES(1),OTHER NAMES(2),OTHER NAMES(3),
	// OTHER NAMES(4),OTHER NAMES(5),EXPIRATION DATE,UNIQUE ID,KIT MFR, KIT MODEL,MODE S CODE HEX,
	N_NUMBER      string `csv:"N-NUMBER,omitempty"`
	SERIAL_NUMBER string `csv:"SERIAL NUMBER,omitempty"`
	MFR_MDL_CODE  string `csv:"MFR MDL CODE,omitempty"`
	YEAR_MFR      string `csv:"YEAR MFR,omitempty"`
	NAME          string `csv:"NAME,omitempty"`
	TYPE_AIRCRAFT string `csv:"TYPE AIRCRAFT,omitempty"`
	TYPE_ENGINE   string `csv:"TYPE ENGINE,omitempty"`
	//MODE_S_CODE     string `csv:"MODE S CODE"`
	MODE_S_CODE_HEX string `csv:"MODE S CODE HEX" storm:"id"`
}

type WriteCounter

type WriteCounter struct {
	Current uint64
	Total   uint64
	B       *mpb.Bar
}

func (WriteCounter) PrintProgress

func (wc WriteCounter) PrintProgress()

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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