aboutsummaryrefslogtreecommitdiff
path: root/internal/qna
diff options
context:
space:
mode:
Diffstat (limited to 'internal/qna')
-rw-r--r--internal/qna/qna.go14
1 files changed, 14 insertions, 0 deletions
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)
+}