tor

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tor implements a library to query a TOR node via its control port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(hostPort, pwd string) (c net.Conn, err error)

Connect creates a new authenticated connection to TOR control port.

Types

type Information

type Information struct {
	Version     string
	In          int
	Out         int
	Fingerprint string
	Flags       []string
	Circuits    int
}

An Information represents various TOR info on the node.

func Info

func Info(hostPort, pwd string) (*Information, error)

Info obtains information on a TOR node by connecting to its control protocol.

func (*Information) String

func (i *Information) String() string

String formats Information on one line.

Jump to

Keyboard shortcuts

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