about summary refs log tree commit diff
path: root/src/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/structs.go')
-rw-r--r--src/structs.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/structs.go b/src/structs.go
new file mode 100644
index 0000000..8b53fe9
--- /dev/null
+++ b/src/structs.go
@@ -0,0 +1,25 @@
+package main
+
+type geoipresult struct {
+	Query       string  `json:"query"`
+	Status      string  `json:"status"`
+	Country     string  `json:"country"`
+	CountryCode string  `json:"countryCode"`
+	Region      string  `json:"region"`
+	RegionName  string  `json:"regionName"`
+	City        string  `json:"city"`
+	Zip         string  `json:"zip"`
+	Lat         float64 `json:"lat"`
+	Lon         float64 `json:"lon"`
+	Timezone    string  `json:"timezone"`
+	Isp         string  `json:"isp"`
+	Org         string  `json:"org"`
+	As          string  `json:"as"`
+}
+
+type location struct {
+	key       string  `json:"key"`
+	latitude  float64 `json:"latitude"`
+	longitude float64 `json:"longitude"`
+	name      string  `json:"name"`
+}