peerstore

package module
v0.0.0-...-11f5679 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mpi-peerstore

custom libp2p peerstore for ipfs-mpi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peerstore

type Peerstore map[string]*func(string) error

func NewPeerstore

func NewPeerstore() Peerstore

func (*Peerstore) Add

func (p *Peerstore) Add(addr string, rw *func(string) error)

func (*Peerstore) Del

func (p *Peerstore) Del(addr string)

func (*Peerstore) Has

func (p *Peerstore) Has(addr string) bool

func (*Peerstore) Listen

func (p *Peerstore) Listen(ctx context.Context, routingDiscovery *discovery.RoutingDiscovery, RendezvousString string, discoveryHandler *func(*Peerstore, peer.ID))

func (*Peerstore) SetHostId

func (p *Peerstore) SetHostId(addr string)

func (*Peerstore) Write

func (p *Peerstore) Write(addr string, str string) error

func (*Peerstore) WriteAll

func (p *Peerstore) WriteAll(str string)

Jump to

Keyboard shortcuts

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