Versions in this module Expand all Collapse all v1 v1.42.1 Dec 2, 2019 v1.42.0 Oct 31, 2019 Changes in this version + func Identify(peer string) peer.Identifier + type Peer struct + func NewPeer(pid PeerIdentifier, transport peer.Transport) *Peer + func (p *Peer) EndRequest() + func (p *Peer) HostPort() string + func (p *Peer) NotifyStatusChanged() + func (p *Peer) NumSubscribers() int + func (p *Peer) SetStatus(status peer.ConnectionStatus) + func (p *Peer) StartRequest() + func (p *Peer) Status() peer.Status + func (p *Peer) Subscribe(sub peer.Subscriber) + func (p *Peer) Transport() peer.Transport + func (p *Peer) Unsubscribe(sub peer.Subscriber) error + type PeerIdentifier string + func (p PeerIdentifier) Identifier() string