From 8383a241fc3cf5b022c9c53f8f19690edf04177b Mon Sep 17 00:00:00 2001 From: s Date: Mon, 10 Nov 2025 15:22:32 -0500 Subject: refactor: restructure client modules and add config file support - 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 --- internal/models/breachforum.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 internal/models/breachforum.go (limited to 'internal/models/breachforum.go') diff --git a/internal/models/breachforum.go b/internal/models/breachforum.go new file mode 100644 index 0000000..c9314dd --- /dev/null +++ b/internal/models/breachforum.go @@ -0,0 +1,12 @@ +package models + +type BreachForumSearchParams struct { + Search string + MaxHits int +} + +type BreachForumSearchResponse struct { + Query string `json:"query"` + MaxHits int `json:"max_hits"` + Results interface{} `json:"results"` +} -- cgit v1.2.3