Documentation ¶
Index ¶
Constants ¶
View Source
const (
//PeerIDLen is length of peer id
PeerIDLen = 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manage peers of the task
func NewManager ¶
NewManager return a Manager instance
func (*Manager) AddAddrPeer ¶
AddAddrPeer add peer from addr
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a local server for other peer
func NewServerWithIdentifier ¶
NewServerWithIdentifier create a peer server with identifier display in peer id
type Status ¶
type Status struct { PeerNum int Status *tracker.DownloadStatus }
Status is downlod stautus
Click to show internal directories.
Click to hide internal directories.