Documentation
¶
Overview ¶
Package tor provides a Tor hidden service transport for the relay. It wraps the existing pkg/tor service as a pluggable transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Port is the internal port for the hidden service.
Port int
// DataDir is the directory for Tor data (torrc, keys, hostname, etc.).
DataDir string
// Binary is the path to the tor executable.
Binary string
// SOCKSPort is the port for outbound SOCKS connections (0 = disabled).
SOCKSPort int
// Handler is the HTTP handler to serve.
Handler http.Handler
}
Config holds Tor transport configuration.
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport serves the relay as a Tor hidden service.
func (*Transport) Service ¶
func (t *Transport) Service() *torservice.Service
Service returns the underlying Tor service for access to Tor-specific functionality (e.g., OnionAddress, DataDir).
Click to show internal directories.
Click to hide internal directories.