ipfs

package
v0.0.0-...-1404cd9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 35 Imported by: 0

Documentation

Index

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) CanDial

func (t *TorTransport) CanDial(addr ma.Multiaddr) bool

func (*TorTransport) Dial

func (t *TorTransport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (transport.Conn, error)

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

type TorTransportConf struct {
	DialConf  *tor.DialConf
	WebSocket bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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