Documentation ¶
Index ¶
- Constants
- Variables
- func NewTorTransport(bineTor *tor.Tor, conf *TorTransportConf) func(*upgrader.Upgrader) *TorTransport
- type TorTransport
- func (t *TorTransport) CanDial(addr ma.Multiaddr) bool
- func (t *TorTransport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (transport.Conn, error)
- func (t *TorTransport) Listen(laddr ma.Multiaddr) (transport.Listener, error)
- func (t *TorTransport) Protocols() []int
- func (t *TorTransport) Proxy() bool
- type TorTransportConf
Constants ¶
View Source
const ONION_LISTEN_PROTO_CODE = 0x55
Variables ¶
View Source
var Impl tordht.Impl = ipfsImpl
View Source
var OnionMultiaddrFormat = mafmt.Base(ma.P_ONION)
View Source
var TorMultiaddrFormat = mafmt.Or(OnionMultiaddrFormat, mafmt.TCP)
Functions ¶
func NewTorTransport ¶
func NewTorTransport(bineTor *tor.Tor, conf *TorTransportConf) func(*upgrader.Upgrader) *TorTransport
Types ¶
type TorTransport ¶
type TorTransport struct {
// contains filtered or unexported fields
}
impls libp2p's transport.Transport
func (*TorTransport) Listen ¶
func (t *TorTransport) Listen(laddr ma.Multiaddr) (transport.Listener, error)
func (*TorTransport) Protocols ¶
func (t *TorTransport) Protocols() []int
func (*TorTransport) Proxy ¶
func (t *TorTransport) Proxy() bool
type TorTransportConf ¶
Click to show internal directories.
Click to hide internal directories.