Commit Graph
111 Commits
Author SHA1 Message Date
windyboy d4eabd42e4 refactor: Rename AFTN struct field from "Text" to "Body"
The code changes rename the "Text" field in the AFTN struct to "Body" to improve clarity and consistency. This change aligns with the naming convention used in other parts of the codebase and enhances code readability.
2024-07-20 12:37:18 +08:00
windyboy 74c3768e27 chore: Remove unused fields in FPL and DEP structs 2024-07-20 10:41:43 +08:00
windyboy 242e48d1b7 chore: Remove unused fields in FPL and DEP structs
The code changes remove the unused `SurveillanceEquipment` field in the `FPL` struct and the `TelegramCategory` field in the `DEP` struct. These fields are no longer needed and can be safely removed. This commit improves code cleanliness and reduces unnecessary complexity.
2024-07-20 10:40:28 +08:00
windyboy e394362554 chore: Remove commented code and update FPL struct fields
The code changes in `config.go` remove the commented code for printing a validation message and update the fields of the `FPL` struct in `fpl_test.go`. The commented code is no longer needed and can be safely removed. The updated fields in the `FPL` struct reflect the latest requirements and improve the accuracy of the test cases. This commit enhances code readability and maintainability.
2024-07-20 08:21:49 +08:00
windyboy 75160df8ca feat: Update regex patterns for flight plan parsing
The regex patterns used for parsing flight plans have been updated in the `config.go` file. The changes include adding named capture groups for each segment of the flight plan string, allowing for easier extraction of specific information. This update improves the accuracy and flexibility of the flight plan parsing functionality.
2024-07-20 01:17:58 +08:00
windyboy a5a2ced556 feat: Update main receiver file path in Makefile
The main receiver file path in the Makefile has been updated to `./cmd/main/main.go` to reflect the correct location of the file. This change ensures that the Makefile correctly builds and runs the main receiver component of the application.
2024-07-20 00:52:31 +08:00
windyboy afd4643696 feat: Add FPL message parsing functionality
This commit adds functionality to parse FPL messages in the `aftn_parser.go` file. The `Parse` method now correctly parses the FPL message type and extracts the relevant data fields. The `FPL` struct is introduced in the `domain` package to represent FPL messages. The parsing logic is implemented to populate the `FPL` struct with the parsed data. This change enables the application to handle FPL messages and process them accordingly.
2024-07-20 00:46:31 +08:00
windyboy 969bb57902 feat: Add AFTN message parsing functionality
This commit adds functionality to parse AFTN messages in the `aftn_parser.go` file. The `Parse` method now correctly parses the message based on its type and extracts the relevant data. Additionally, the `FindPatterns` and `ParseBody` functions have been updated to remove the dependency on the `config` package and instead use the `config.GetBodyPatterns` function to retrieve the body patterns. This change improves the modularity and maintainability of the code.

Note: This commit message assumes that the `config` package has been refactored to use the `GetBodyPatterns` function.
2024-07-20 00:01:04 +08:00
windyboy dbbf6133be init 2024-07-19 20:02:18 +08:00
windyboy d1d427057e chore: Add .gitignore file to project 2024-07-19 20:02:03 +08:00
windyboy ee2cdb4b04 Initial commit 2024-07-19 20:00:10 +08:00