Documentation ¶ Index ¶ type DHT type DHTConf type Impl type PeerInfo func NewPeerInfo(str string) (*PeerInfo, error) func (p *PeerInfo) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DHT ¶ type DHT interface { io.Closer PeerInfo() *PeerInfo Provide(ctx context.Context, id []byte) error FindProviders(ctx context.Context, id []byte, maxCount int) ([]*PeerInfo, error) } type DHTConf ¶ type DHTConf struct { Tor *tor.Tor BootstrapPeers []*PeerInfo ClientOnly bool Verbose bool } type Impl ¶ type Impl interface { ApplyDebugLogging() RawStringDataID(id []byte) (string, error) NewDHT(ctx context.Context, conf *DHTConf) (DHT, error) } type PeerInfo ¶ type PeerInfo struct { ID string // May be empty string if not listening OnionServiceID string // Invalid value if OnionServiceID is empty OnionPort int } func NewPeerInfo ¶ func NewPeerInfo(str string) (*PeerInfo, error) func (*PeerInfo) String ¶ func (p *PeerInfo) String() string Source Files ¶ View all Source files tordht.go Directories ¶ Show internal Expand all Path Synopsis ipfs websocket Click to show internal directories. Click to hide internal directories.