Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Single ¶ added in v1.0.0
type Single struct {
// contains filtered or unexported fields
}
Single implements the Chooser interface for a single peer
func NewSingle ¶ added in v1.0.0
func NewSingle(pid peer.Identifier, transport peer.Transport) *Single
NewSingle creates a static Chooser with a single Peer
func (*Single) NotifyStatusChanged ¶ added in v1.0.0
func (s *Single) NotifyStatusChanged(_ peer.Identifier)
NotifyStatusChanged receives notifications from the transport when the peer connects, disconnects, accepts a request, and so on.
Click to show internal directories.
Click to hide internal directories.