summaryrefslogtreecommitdiffstats
path: root/internal/models/moon.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/moon.go')
-rw-r--r--internal/models/moon.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/models/moon.go b/internal/models/moon.go
new file mode 100644
index 0000000..bedfc1c
--- /dev/null
+++ b/internal/models/moon.go
@@ -0,0 +1,20 @@
+package models
+
+type MoonParams struct {
+ Query string `json:"query"`
+ Filename string `json:"filename,omitempty"`
+ MaxHits int `json:"max_hits,omitempty"`
+ SortBy string `json:"sort_by,omitempty"`
+ IngestStartDate string `json:"ingest_start_date,omitempty"`
+ IngestEndDate string `json:"ingest_end_date,omitempty"`
+ PostedStartDate string `json:"posted_start_date,omitempty"`
+ PostedEndDate string `json:"posted_end_date,omitempty"`
+ Format string `json:"format,omitempty"`
+}
+
+type MoonResponse struct {
+ MaxHits int `json:"max_hits"`
+ Results interface{} `json:"results"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}