Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefData ¶
type DefData struct { NotamRequestUrl string `json:"notamRequestUrl` CountryCode string `json:"countryCode"` CodeListPath string `json:"codeListPath"` RequiredLocation []string `json:"requiredLocation"` }
FrData contains all the information required to connect and retrieve NOTAM from AIS services
var FranceAis DefData
func (*DefData) Process ¶
func (def *DefData) Process()
Process launches the global process to recover the NOTAMs from the Japan AIS webpages. It recovers the relevant information from a json file, set in ./country/japan/def.json. Then, it initiates the http and mongodb interfaces. Once achieved, it interrogates the web form by providing the location ICAO code to the webform to identify the reference list of the relevant NOTAM.
func (*DefData) RetrieveAllNotams ¶
func (def *DefData) RetrieveAllNotams()
func (*DefData) SendRequest ¶
func (def *DefData) SendRequest(form *FormRequest) (*http.Response, error)
type FormRequest ¶
type FormRequest struct { Resultat bool `json:"bResultat"` Impression string `json:"bImpression"` ModeAffichage string // COMPLET FIR_Date_DATE string //2021/10/28 FIR_Date_HEURE string //: 19:54 FIR_Langue string //: EN FIR_Duree string //: 12 FIR_CM_REGLE string //: 1 FIR_CM_GPS string //: 1 FIR_CM_INFO_COMP string //: 1 FIR_CM_ROUTE string //: 1 FIR_NivMin string //: 0 FIR_NivMax string //: 999 FIR_Tab_Fir [10]string //: LFRR }
func NewFormRequest ¶
func NewFormRequest(icaoCode string, sDate string, sHour string) *FormRequest
func (*FormRequest) Encode ¶
func (form *FormRequest) Encode() url.Values
Click to show internal directories.
Click to hide internal directories.