summaryrefslogtreecommitdiff
path: root/vendor/github.com/wybiral/torgo/onion.go
diff options
context:
space:
mode:
authordavy <davy.wybiral@gmail.com>2019-07-03 16:55:03 -0500
committerdavy <davy.wybiral@gmail.com>2019-07-03 16:55:03 -0500
commit442e3c6dcf35cc1ca508e617f94198637e761bc8 (patch)
tree8d6b6210ce98385180766fa14984e2c47f779050 /vendor/github.com/wybiral/torgo/onion.go
parent53bc0c19fadcfb7ae9a608ed1f9f6268d1670368 (diff)
dep ensurev0.1.0
Diffstat (limited to 'vendor/github.com/wybiral/torgo/onion.go')
-rw-r--r--vendor/github.com/wybiral/torgo/onion.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/wybiral/torgo/onion.go b/vendor/github.com/wybiral/torgo/onion.go
new file mode 100644
index 0000000..f88c8ff
--- /dev/null
+++ b/vendor/github.com/wybiral/torgo/onion.go
@@ -0,0 +1,13 @@
+package torgo
+
+// Onion represents a hidden service.
+type Onion struct {
+ // Ports maps virtual ports for the hidden service to local addresses.
+ Ports map[int]string
+ // ServiceID is the unique hidden service address (without ".onion" ending).
+ ServiceID string
+ // Base64 encoded private key for the hidden service.
+ PrivateKey string
+ // Type of private key (RSA1024 or ED25519-V3).
+ PrivateKeyType string
+}