summaryrefslogtreecommitdiffstats
path: root/internal/models/usrsx.go
diff options
context:
space:
mode:
authors <[email protected]>2025-11-03 21:17:12 -0500
committers <[email protected]>2025-11-03 21:17:12 -0500
commitf7fcfa623e670dc533bb378912829c73a3593e63 (patch)
tree910119ff7293b407affa9ff34706d627d77a3a04 /internal/models/usrsx.go
downloaddborg-f7fcfa623e670dc533bb378912829c73a3593e63.tar.gz
dborg-f7fcfa623e670dc533bb378912829c73a3593e63.zip
hi
Diffstat (limited to 'internal/models/usrsx.go')
-rw-r--r--internal/models/usrsx.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/internal/models/usrsx.go b/internal/models/usrsx.go
new file mode 100644
index 0000000..f9264be
--- /dev/null
+++ b/internal/models/usrsx.go
@@ -0,0 +1,33 @@
+package models
+
+type USRSXParams struct {
+ Username string `json:"username"`
+ Sites []string `json:"sites,omitempty"`
+ Fuzzy bool `json:"fuzzy,omitempty"`
+ MaxTasks int `json:"max_tasks,omitempty"`
+}
+
+type USRSXResponse struct {
+ Username string `json:"username"`
+ Results []SiteResult `json:"results"`
+ Credits struct {
+ Remaining int `json:"remaining"`
+ Unlimited bool `json:"unlimited"`
+ } `json:"credits"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
+
+type SiteResult struct {
+ SiteName string `json:"site_name"`
+ Username string `json:"username"`
+ URL string `json:"url"`
+ Status string `json:"status"`
+ ResponseCode int `json:"response_code"`
+ Category string `json:"category,omitempty"`
+ Timestamp string `json:"timestamp,omitempty"`
+ Type string `json:"type,omitempty"`
+ Elapsed float64 `json:"elapsed,omitempty"`
+ Error string `json:"error,omitempty"`
+ Metadata map[string]interface{} `json:"metadata,omitempty"`
+}