Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerKeeper ¶
type PeerKeeper interface { AddPeer(id string, peer python.Peer) GetPeers(id string) []python.Peer }
Implementations should be thread safe.
type RandomizedPeerKeeper ¶
type RandomizedPeerKeeper struct {
// contains filtered or unexported fields
}
func NewRandomizedPeerKeeper ¶
func NewRandomizedPeerKeeper(peerNum int) *RandomizedPeerKeeper
Click to show internal directories.
Click to hide internal directories.