Documentation ¶
Index ¶
- Variables
- func Select(has []string, may []string, count map[string]uint) string
- type Manager
- func (mgr *Manager) CancelInv(hash types.Hash) error
- func (mgr *Manager) CancelTx(hash types.Hash) error
- func (mgr *Manager) HasInv(hash types.Hash) bool
- func (mgr *Manager) HasTx(hash types.Hash) bool
- func (mgr *Manager) StartInv(hash types.Hash) error
- func (mgr *Manager) StartTx(hash types.Hash) error
- type Network
- type Peers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExist = errors.New("download already exists") ErrNotExist = errors.New("download does not exist") )
Errors exported by the package.
Functions ¶
Types ¶
type Manager ¶
Manager implement a simple download manager.
type Peers ¶
type Peers interface {
Addresses(filters ...peers.FilterFunc) []string
}
Peers represents an interface to get access to the state of currently connected peers.
Click to show internal directories.
Click to hide internal directories.