registration

package
v0.0.0-...-9524c35 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(logger log.Logger, config RegManagerConfig) (*manager, error)

Types

type Detail

type Detail struct {
	NNumber         string `csv:"N-NUMBER"`
	SerialNumber    string `csv:"SERIAL NUMBER"`
	MfrModelCode    string `csv:"MFR MDL CODE"`
	EngMfrModel     string `csv:"ENG MFR MDL"`
	YearMfr         string `csv:"YEAR MFR"`
	TypeRegistratnt string `csv:"TYPE REGISTRANT"`
	Name            string `csv:"NAME"`
	Street          string `csv:"STREET"`
	Street2         string `csv:"STREET2"`
	City            string `csv:"CITY"`
	State           string `csv:"STATE"`
	ZipCode         string `csv:"ZIP CODE"`
	Region          string `csv:"REGION"`
	County          string `csv:"COUNTY"`
	Country         string `csv:"COUNTRY"`
	LastActionDate  string `csv:"LAST ACTION DATE"`
	CertIssueDate   string `csv:"CERT ISSUE DATE"`
	Certification   string `csv:"CERTIFICATION"`
	TypeAircraft    string `csv:"TYPE AIRCRAFT"`
	TypeEngine      string `csv:"TYPE ENGINE"`
	StatusCode      string `csv:"STATUS CODE"`
	ModeSCode       string `csv:"MODE S CODE"`
	FractOwner      string `csv:"FRACT OWNER"`
	AirWorthDate    string `csv:"AIR WORTH DATE"`
	OtherNames1     string `csv:"OTHER NAMES(1)"`
	OtherNames2     string `csv:"OTHER NAMES(2)"`
	OtherNames3     string `csv:"OTHER NAMES(3)"`
	OtherNames4     string `csv:"OTHER NAMES(4)"`
	OtherNames5     string `csv:"OTHER NAMES(5)"`
	ExpirationDate  string `csv:"EXPIRATION DATE"`
	UniqueID        string `csv:"UNIQUE ID"`
	KitMfr          string `csv:"KIT MFR"`
	KitModel        string `csv:"KIT MODEL"`
	ModeSCodeHex    string `csv:"MODE S CODE HEX"`
}

type DetailLookup

type DetailLookup interface {
	Lookup(hex string) *Detail
}

type RegManagerConfig

type RegManagerConfig struct {
	Directory string `yaml:"directory"`
	URL       string `yaml:"url"`
}

func (*RegManagerConfig) RegisterFlags

func (c *RegManagerConfig) RegisterFlags(f *flag.FlagSet)

Jump to

Keyboard shortcuts

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