Categorygithub.com/openbazaar/go-onion-transport
modulepackage
0.0.0-20190322150306-a99399c9cdea
Repository: https://github.com/openbazaar/go-onion-transport.git
Documentation: pkg.go.dev

# README

go-onion-transport

Tor onion transport for IPFS

# Functions

IsValidOnionMultiAddr is used to validate that a multiaddr is representing a Tor onion service.
NewOnionTransport creates a OnionTransport controlNet and controlAddr contain the connecting information for the tor control port; either TCP or UNIX domain socket.
NewOnionTransportC is a convenience function that returns a function suitable for passing into libp2p.Transport for host configuration.

# Structs

OnionConn implement's go-libp2p-transport's Conn interface.
OnionListener implements go-libp2p-transport's Listener interface.
OnionTransport implements go-libp2p-transport's Transport interface.

# Type aliases

OnionTransportC is a type alias for OnionTransport constructors, for use with libp2p.New.