Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerSubscriptionProvider ¶
type PeerSubscriptionProvider interface {
SubscribePeerEvents() (conn, disc chan p2pcrypto.PublicKey)
}
PeerSubscriptionProvider is the interface that provides us with peer events channels.
type Peers ¶
Peers is used by protocols to manage available peers.
func NewPeers ¶
func NewPeers(s PeerSubscriptionProvider, lg log.Log) *Peers
NewPeers creates a Peers instance that is registered to `s`'s events and updates with them.
func NewPeersImpl ¶
NewPeersImpl creates a Peers using specified parameters and returns it
Click to show internal directories.
Click to hide internal directories.