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

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