summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/breachforum.go12
-rw-r--r--internal/models/bssid.go23
-rw-r--r--internal/models/buckets.go29
-rw-r--r--internal/models/files.go12
-rw-r--r--internal/models/geo.go10
-rw-r--r--internal/models/osint.go101
-rw-r--r--internal/models/shortlinks.go16
7 files changed, 102 insertions, 101 deletions
diff --git a/internal/models/breachforum.go b/internal/models/breachforum.go
new file mode 100644
index 0000000..c9314dd
--- /dev/null
+++ b/internal/models/breachforum.go
@@ -0,0 +1,12 @@
+package models
+
+type BreachForumSearchParams struct {
+ Search string
+ MaxHits int
+}
+
+type BreachForumSearchResponse struct {
+ Query string `json:"query"`
+ MaxHits int `json:"max_hits"`
+ Results interface{} `json:"results"`
+}
diff --git a/internal/models/bssid.go b/internal/models/bssid.go
new file mode 100644
index 0000000..a5e00bc
--- /dev/null
+++ b/internal/models/bssid.go
@@ -0,0 +1,23 @@
+package models
+
+type BSSIDParams struct {
+ BSSID string
+ All bool
+ Google bool
+ OSM 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"`
+ GoogleMap string `json:"google_map,omitempty"`
+ OpenStreetMap string `json:"openstreetmap,omitempty"`
+}
+
+type BSSIDLookupResponse []BSSIDResult
diff --git a/internal/models/buckets.go b/internal/models/buckets.go
new file mode 100644
index 0000000..c8aa1a3
--- /dev/null
+++ b/internal/models/buckets.go
@@ -0,0 +1,29 @@
+package models
+
+type BucketsSearchParams struct {
+ Limit int
+ Start int
+}
+
+type BucketsFilesSearchParams struct {
+ Keywords string
+ Extensions string
+ Buckets string
+ Limit int
+ Start int
+}
+
+type CreditsInfo struct {
+ Remaining int `json:"remaining"`
+ Unlimited bool `json:"unlimited"`
+}
+
+type BucketsSearchResponse struct {
+ Credits CreditsInfo `json:"credits"`
+ Results interface{} `json:"results"`
+}
+
+type BucketsFilesSearchResponse struct {
+ Credits CreditsInfo `json:"credits"`
+ Results interface{} `json:"results"`
+}
diff --git a/internal/models/files.go b/internal/models/files.go
new file mode 100644
index 0000000..269d6cc
--- /dev/null
+++ b/internal/models/files.go
@@ -0,0 +1,12 @@
+package models
+
+type OpenDirectorySearchParams struct {
+ URL string
+ Filename string
+ Extension string
+ Exclude string
+ Size int
+ From int
+}
+
+type OpenDirectorySearchResponse map[string]interface{}
diff --git a/internal/models/geo.go b/internal/models/geo.go
new file mode 100644
index 0000000..a380ddb
--- /dev/null
+++ b/internal/models/geo.go
@@ -0,0 +1,10 @@
+package models
+
+type GeoSearchParams struct {
+ Street string
+ City string
+ State string
+ Zip string
+}
+
+type GeoSearchResponse map[string]interface{}
diff --git a/internal/models/osint.go b/internal/models/osint.go
deleted file mode 100644
index 6c2774e..0000000
--- a/internal/models/osint.go
+++ /dev/null
@@ -1,101 +0,0 @@
-package models
-
-type BSSIDParams struct {
- BSSID string
- All bool
- Google bool
- OSM 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"`
- GoogleMap string `json:"google_map,omitempty"`
- OpenStreetMap string `json:"openstreetmap,omitempty"`
-}
-
-type BSSIDLookupResponse []BSSIDResult
-
-type ErrorResponse struct {
- Error string `json:"error"`
-}
-
-type BreachForumSearchParams struct {
- Search string
- MaxHits int
-}
-
-type BreachForumSearchResponse struct {
- Query string `json:"query"`
- MaxHits int `json:"max_hits"`
- Results interface{} `json:"results"`
-}
-
-type OpenDirectorySearchParams struct {
- URL string
- Filename string
- Extension string
- Exclude string
- Size int
- From int
-}
-
-type OpenDirectorySearchResponse map[string]interface{}
-
-type BucketsSearchParams struct {
- Limit int
- Start int
-}
-
-type BucketsFilesSearchParams struct {
- Keywords string
- Extensions string
- Buckets string
- Limit int
- Start int
-}
-
-type ShortlinksSearchParams struct {
- Keywords string
- Ext string
- Order string
- Direction string
- Regexp bool
- Limit int
- Start int
-}
-
-type CreditsInfo struct {
- Remaining int `json:"remaining"`
- Unlimited bool `json:"unlimited"`
-}
-
-type BucketsSearchResponse struct {
- Credits CreditsInfo `json:"credits"`
- Results interface{} `json:"results"`
-}
-
-type BucketsFilesSearchResponse struct {
- Credits CreditsInfo `json:"credits"`
- Results interface{} `json:"results"`
-}
-
-type ShortlinksSearchResponse struct {
- Credits CreditsInfo `json:"credits"`
- Results interface{} `json:"results"`
-}
-
-type GeoSearchParams struct {
- Street string
- City string
- State string
- Zip string
-}
-
-type GeoSearchResponse map[string]interface{}
diff --git a/internal/models/shortlinks.go b/internal/models/shortlinks.go
new file mode 100644
index 0000000..206a6cd
--- /dev/null
+++ b/internal/models/shortlinks.go
@@ -0,0 +1,16 @@
+package models
+
+type ShortlinksSearchParams struct {
+ Keywords string
+ Ext string
+ Order string
+ Direction string
+ Regexp bool
+ Limit int
+ Start int
+}
+
+type ShortlinksSearchResponse struct {
+ Credits CreditsInfo `json:"credits"`
+ Results interface{} `json:"results"`
+}