peer

package
v0.0.0-...-dc1a0b8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Id        PeerId
	Addresses []*ma.Multiaddr
}

func (*Peer) AddAddress

func (p *Peer) AddAddress(a *ma.Multiaddr)

func (*Peer) Key

func (p *Peer) Key() u.Key

func (*Peer) NetAddress

func (p *Peer) NetAddress(n string) *ma.Multiaddr

type PeerBook

type PeerBook map[u.Key]*Peer

have to map Key (string) : *Peer because slices are not comparable.

type PeerId

type PeerId mh.Multihash

Jump to

Keyboard shortcuts

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