package
0.0.0-20241105020827-5ee4692b52b5
Repository: https://github.com/digitalautonomy/wahay.git
Documentation: pkg.go.dev

# Functions

NewInstance initializes and returns the Instance for working with Tor.

# Variables

ErrFatalTorNoConnectionAllowed is a fatal error that it's trown when the system cannot make a connection over the Tor network.
ErrInvalidConfiguredTorBinary is an error to be trown where the user configure a custom path for Tor binary and it's no valid.
ErrInvalidTorPath is an error to be trown where custom paths to find the Tor binary are empty or don't exists.
ErrPartialTorNoControlPort is an error to be trown when a valid Tor control port cannot be found.
ErrPartialTorNoValidAuth is an error to be trown when the system cannot authenticate to the Tor control port.
ErrPartialTorTooOld is an error that shows that the control port is running a version that is too old.
ErrTorBinaryNotFound is an error to be trown when wasn't possible to find any available or valid Tor binary.
ErrTorConnectionTimeout is an error to be trown when the connection to the Tor network using our instance wasn't possible.
ErrTorInstanceCantStart is an error to be trown when the Tor instance cannot be started.
ErrTorVersionNotCompatible is an error to be trown where some Tor binary is found but the version is incompatible.

# Structs

OnionPort is a representation of the information to create a hidde service with support for multiple destination ports.
RunningCommand is a representation of a torify command.

# Interfaces

Control is the interface for controlling the Tor instance on this system.
Instance contains functions to work with Tor instance.
Onion is a representation of a Tor Onion Service.
Service is a representation of a service running through Tor.

# Type aliases

ModifyCommand is a function that will potentially modify a command.