Documentation ¶
Index ¶
- type BlockUploaded
- type PeerWriter
- func (p *PeerWriter) CancelRequest(msg peerprotocol.CancelMessage)
- func (p *PeerWriter) Done() chan struct{}
- func (p *PeerWriter) Messages() <-chan interface{}
- func (p *PeerWriter) Run()
- func (p *PeerWriter) SendMessage(msg peerprotocol.Message)
- func (p *PeerWriter) SendPiece(msg peerprotocol.RequestMessage, pi io.ReaderAt)
- func (p *PeerWriter) Stop()
- type Piece
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockUploaded ¶
type BlockUploaded struct {
Length uint32
}
type PeerWriter ¶
type PeerWriter struct {
// contains filtered or unexported fields
}
func (*PeerWriter) CancelRequest ¶
func (p *PeerWriter) CancelRequest(msg peerprotocol.CancelMessage)
func (*PeerWriter) Done ¶
func (p *PeerWriter) Done() chan struct{}
func (*PeerWriter) Messages ¶
func (p *PeerWriter) Messages() <-chan interface{}
func (*PeerWriter) Run ¶
func (p *PeerWriter) Run()
func (*PeerWriter) SendMessage ¶
func (p *PeerWriter) SendMessage(msg peerprotocol.Message)
func (*PeerWriter) SendPiece ¶
func (p *PeerWriter) SendPiece(msg peerprotocol.RequestMessage, pi io.ReaderAt)
func (*PeerWriter) Stop ¶
func (p *PeerWriter) Stop()
Click to show internal directories.
Click to hide internal directories.