Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NonAnonymous ¶
func NonAnonymous(c *StartConf)
NonAnonymous configures Tor to publish non-anonymous services. This allows trading anonymity for a possible performance increase as less hops are used with this option.
Types ¶
type ClientAuth ¶
type ClientAuth struct { // OnionID is the base32-encoded onion ID (without the .onion suffix) which // the client is authenticating to. OnionID string // PrivateKey is a 32-byte x25519 private key, which only the client // should know. PrivateKey []byte }
ClientAuth represents client authorization needed to connect to auth-protected onion services.
type Option ¶
type Option func(*StartConf)
Option is an option that configures Tor.
func ClientAuths ¶
func ClientAuths(clientAuths ...ClientAuth) Option
ClientAuths configures Tor with client authorizations needed in order to connect to protected onion services.
type StartConf ¶
type StartConf struct { tor.StartConf ClientAuths []ClientAuth }
StartConf configures the managed Tor daemon.
Click to show internal directories.
Click to hide internal directories.