client_tor

package
v0.0.0-...-001208e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TorClient

type TorClient struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cancel context.CancelFunc, msgCh chan message.Message) *TorClient

func (*TorClient) RunClient

func (c *TorClient) RunClient(address string) (net.Conn, error)

func (*TorClient) RunServer

func (c *TorClient) RunServer(_ string, onionPrivKey []byte) (net.Listener, error)

Start the tor service and return the listener

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL