diff options
| author | s <[email protected]> | 2025-11-10 15:22:32 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-10 15:22:32 -0500 |
| commit | 8383a241fc3cf5b022c9c53f8f19690edf04177b (patch) | |
| tree | 887a489f7931d07373530c7e053f0343dca65e1d /internal/models/buckets.go | |
| parent | 9a9e79f232b83d3bd2a816287272515863df1299 (diff) | |
| download | dborg-8383a241fc3cf5b022c9c53f8f19690edf04177b.tar.gz dborg-8383a241fc3cf5b022c9c53f8f19690edf04177b.zip | |
refactor: restructure client modules and add config file supportv0.8.1
- Split large osint.go client into focused modules (bssid.go, breachforum.go, buckets.go, etc.)
- Add config file support with init command for API key management
- Remove api-key flag in favor of config file + env var fallback
- Update API paths to remove /osint prefix
- Add crawl endpoint streaming support
- Improve error handling with 402 payment required status
Diffstat (limited to 'internal/models/buckets.go')
| -rw-r--r-- | internal/models/buckets.go | 29 |
1 files changed, 29 insertions, 0 deletions
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"` +} |
