Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartSeparatedResponsesFromEntities ¶
func ChartSeparatedResponsesFromEntities(airportService *airports.AirportService, charts map[string][]*charts.Chart) map[string][]ChartsResponse
Types ¶
type AirportPatch ¶
type AirportPatch struct { ATIS *string `json:"atis"` ATISTime *time.Time `json:"atis_time"` ArrivalATIS *string `json:"arrival_atis"` ArrivalATISTime *time.Time `json:"arrival_atis_time"` DepartureRunways *string `json:"departure_runways"` ArrivalRunways *string `json:"arrival_runways"` }
func (*AirportPatch) MergeInto ¶
func (a *AirportPatch) MergeInto(airport *airports.Airport)
type AirportResponse ¶
type AirportResponse struct { ID string `json:"id"` ATIS string `json:"atis"` ATISTime *time.Time `json:"atis_time"` ArrivalATIS string `json:"arrival_atis"` ArrivalATISTime *time.Time `json:"arrival_atis_time"` DepartureRunways string `json:"departure_runways"` ArrivalRunways string `json:"arrival_runways"` METAR string `json:"metar"` TAF string `json:"taf"` MagVar int `json:"mag_var"` }
func AirportResponseFromEntity ¶
func AirportResponseFromEntity(airport airports.Airport) AirportResponse
func AirportResponsesFromEntities ¶
func AirportResponsesFromEntities(airports []airports.Airport) []AirportResponse
type ChartsResponse ¶
type ChartsResponse struct { ChartCode string `json:"chart_code" example:"DP"` ChartName string `json:"chart_name" example:"RDFLG FOUR (RNAV)"` ChartURL string `json:"chart_url" example:"https://aeronav.faa.gov/d-tpp/2212/01234RDFLG.PDF"` }
func ChartResponseFromEntity ¶
func ChartResponseFromEntity(chart *charts.Chart) ChartsResponse
func ChartResponsesFromEntities ¶
func ChartResponsesFromEntities(charts []*charts.Chart) []ChartsResponse
type PIREPRequest ¶
type PIREPRequest struct { Type string `json:"type"` OV string `json:"OV"` TM *time.Time `json:"TM"` FL string `json:"FL"` TP string `json:"TP"` SK string `json:"SK"` WX string `json:"WX"` TA string `json:"TA"` WV string `json:"WV"` TB string `json:"TB"` IC string `json:"IC"` RM string `json:"RM"` }
func (*PIREPRequest) ToEntity ¶
func (p *PIREPRequest) ToEntity() *pireps.PIREP
type PIREPResponse ¶
type PIREPResponse struct { ID int64 `json:"id,omitempty"` Type string `json:"type,omitempty"` OV string `json:"OV,omitempty"` TM *time.Time `json:"TM,omitempty"` FL string `json:"FL,omitempty"` TP string `json:"TP,omitempty"` SK string `json:"SK,omitempty"` WX string `json:"WX,omitempty"` TA string `json:"TA,omitempty"` WV string `json:"WV,omitempty"` TB string `json:"TB,omitempty"` IC string `json:"IC,omitempty"` RM string `json:"RM,omitempty"` Raw string `json:"raw,omitempty"` }
func NewPIREPResponse ¶
func NewPIREPResponse(pirep *pireps.PIREP) *PIREPResponse
func NewPIREPResponses ¶
func NewPIREPResponses(pireps []*pireps.PIREP) []*PIREPResponse
func PIREPResponseFromEntity ¶
func PIREPResponseFromEntity(pirep *pireps.PIREP) *PIREPResponse
type VATISRequest ¶
type VATISRequest struct { Facility string `json:"facility"` Preset string `json:"preset"` ATISLetter string `json:"atisLetter"` ATISType string `json:"atisType"` AirportConditions string `json:"airportConditions"` NOTAMs string `json:"notams"` Timestamp string `json:"timestamp"` Version string `json:"version"` }
Click to show internal directories.
Click to hide internal directories.