summaryrefslogtreecommitdiffstats
path: root/internal/models/osint.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/osint.go')
-rw-r--r--internal/models/osint.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/models/osint.go b/internal/models/osint.go
new file mode 100644
index 0000000..7170c27
--- /dev/null
+++ b/internal/models/osint.go
@@ -0,0 +1,29 @@
+package models
+
+type BSSIDParams struct {
+ BSSID string
+ All bool
+ Map bool
+}
+
+type LocationInfo struct {
+ Latitude float64 `json:"latitude"`
+ Longitude float64 `json:"longitude"`
+ Accuracy int `json:"accuracy"`
+}
+
+type BSSIDResult struct {
+ BSSID string `json:"bssid"`
+ Location *LocationInfo `json:"location"`
+ MapURL string `json:"map_url,omitempty"`
+}
+
+type BSSIDLookupResponse struct {
+ BSSID string `json:"bssid"`
+ Results []BSSIDResult `json:"results"`
+ MapURL string `json:"map_url,omitempty"`
+}
+
+type ErrorResponse struct {
+ Error string `json:"error"`
+}