From 388caec0b6ed6b9cccb15de7ee2f093361772764 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Fri, 24 Mar 2023 19:59:36 +0100 Subject: Few clean-ups --- internal/qna/qna.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 internal/qna/qna.go (limited to 'internal/qna') diff --git a/internal/qna/qna.go b/internal/qna/qna.go new file mode 100644 index 0000000..5336811 --- /dev/null +++ b/internal/qna/qna.go @@ -0,0 +1,14 @@ +package qna + +type Question struct { + Domain string // domain name to visit via HTTPS +} + +type Answer struct { + Domain string // domain name of the visited HTTPS site + OK bool // true if HTTP GET request succeeded + + HTTP bool // true if onion location was found via HTTP header + HTML bool // true if onion location was found via HTML attribute + Onion string // the site's onion location URL (if any) +} -- cgit v1.2.3