Documentation
¶
Index ¶
- type Addr
- type Layer
- func (layer *Layer) Close() error
- func (layer *Layer) Conn(conn net.Conn) (net.Conn, error)
- func (layer *Layer) Dial(addr string, timeout time.Duration) (net.Conn, error)
- func (layer *Layer) IsDialer() bool
- func (layer *Layer) Listener(l net.Listener) (net.Listener, error)
- func (layer *Layer) Name() string
- type Option
- func WithBin(bin string) Option
- func WithBinaryBody(bin []byte) Option
- func WithClient(client *torctl.Client) Option
- func WithControl(control *bulb.Conn) Option
- func WithKey(key crypto.PrivateKey) Option
- func WithPort(port uint16) Option
- func WithProxy(proxy string) Option
- func WithVerbose(verbose bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
Layer - TOR Layer.
func (*Layer) Conn ¶
Conn - Returns back the same connection. TOR can't wrap an existing connection.
func (*Layer) Listener ¶
Listener returns a net.Listener backed by a Onion Service, optionally having Tor generate an ephemeral private key. Regardless of the status of the returned Listener, the Onion Service will be torn down when the control connection is closed.
WARNING: Only one port can be listened to per PrivateKey if this interface is used. To bind to more ports, use the AddOnion call directly.
Click to show internal directories.
Click to hide internal directories.