Categorygithub.com/imthaghost/tornix
modulepackage
1.0.0
Repository: https://github.com/imthaghost/tornix.git
Documentation: pkg.go.dev

# README

net

Tornix, an advanced yet user-friendly tool, revolutionizes the way users interact with the Tor network by offering sophisticated stream isolation capabilities. Designed for both privacy enthusiasts and security professionals, Tornix simplifies the process of securely routing various types of internet traffic through distinct Tor circuits. This method not only enhances privacy by preventing the correlation of different activities but also bolsters security by isolating each data stream. With Tornix, users gain the power to efficiently manage and protect their online presence on the Tor network, ensuring each action remains discreet and secure.


Usage


import (
	"github.com/imthaghost/tornix"
)

go get "github.com/imthaghost/tornix"

Examples

package main

import (
	"io"
	"log"

	"github.com/imthaghost/tornix"
)

func main() {
	// include the max concurrent sessions
	manager := tornix.NewManager(10)
	// start a new session
	session, client, err := manager.StartNewSession()
	if err != nil {
		log.Fatal(err)
	}

	// check your client's IP with AWS
	resp, err := client.Get("https://checkip.amazonaws.com")
	if err != nil {
		log.Fatal(err)
	}
	body, err := io.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
	}

	log.Println(string(body))
	// 185.220.100.254
}

# Packages

No description provided by the author

# Functions

GetSyncMapLength returns the length of a sync.Map.
IsPortAvailable returns true if the port is available for use.
No description provided by the author
NewManager returns a new Manager.

# Constants

No description provided by the author

# Structs

Manager manages the ports used by the proxy.
No description provided by the author