Discover Packages
github.com/nampu898/ipfs
util
peerset
package
Version:
v0.3.8
Opens a new window with list of versions in this module.
Published: Oct 19, 2015
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type PeerSet New() NewLimited(size) (ps) Add(p) (ps) Contains(p) (ps) Size() (ps) TryAdd(p)
Documentation
¶
PeerSet is a threadsafe set of peers
TryAdd Attempts to add the given peer into the set.
This operation can fail for one of two reasons:
1) The given peer is already in the set
2) The number of peers in the set is equal to size
Source Files
¶
Click to show internal directories.
Click to hide internal directories.