single

package
v1.0.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Single

type Single struct {
	// contains filtered or unexported fields
}

Single implements the peer.Chooser interface for a single peer

func New

func New(pid peer.Identifier, transport peer.Transport) *Single

New creates a static peer.Chooser with a single Peer

func (*Single) Choose

Choose returns the single peer

func (*Single) NotifyStatusChanged

func (s *Single) NotifyStatusChanged(peer.Identifier)

NotifyStatusChanged when the Peer status changes

func (*Single) Start

func (s *Single) Start() error

Start is a noop

func (*Single) Stop

func (s *Single) Stop() error

Stop is a noop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL