summaryrefslogtreecommitdiffstats
path: root/internal/models/osint.go
blob: 6096df8a12d2ec8ce4ba29c1beb7d69332d5ea5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"`
}