Documentation ¶
Index ¶
- Constants
- func CreateReleasableUrl(year string) string
- func DownloadFile(wg *sync.WaitGroup, dest string, url string, prg *mpb.Progress)
- func TrimSpace(field string, column string, v interface{}) string
- func USMasterKey(value interface{}) string
- func USRegistrationKey(value interface{}) string
- type AircraftRef
- type Master
- type WriteCounter
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 DownloadFile ¶
func USMasterKey ¶
func USMasterKey(value interface{}) string
func USRegistrationKey ¶
func USRegistrationKey(value interface{}) string
Types ¶
type AircraftRef ¶
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 ¶
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.